H3C S7500 Series Operation Manual page 839

Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Operation Manual – SSH Terminal Service
H3C S7500 Series Ethernet Switches
II. Network diagram
Switch B
SFTP Server
IP address: 10.111.27.91/24
Figure 1-3 Network diagram for SFTP configuration
III. Configuration procedure
1)
Configure Switch B (SFTP server)
# Enable the SFTP server.
[H3C] sftp server enable
# Specify SFTP service for SSH user abc.
[H3C] ssh user abc service-type sftp
2)
Configure Switch A (SFTP client)
# Establish a connection to the remote SFTP server and enter SFTP client view.
[H3C] sftp 10.111.27.91
# Display the current directory on the SFTP server, delete file z and verify the operation.
sftp-client> dir
-rwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
drwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
sftp-client> delete z
The following File will be deleted:
flash:/z
Are you sure to delete it?(Y/N):y
This operation may take a long time. Please wait...
File successfully Removed
sftp-client> dir
-rwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
drwxrwxrwx
-rwxrwxrwx
# Create directory new1 and verify the operation.
sftp-client> mkdir new1
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1-18
Chapter 1 SSH Terminal Service Configuration
Switch A
SFTP Client
1759 Aug 23 06:52 config.cfg
225 Aug 24 08:01 pubkey2
283 Aug 24 07:39 pubkey1
0 Sep 01 06:22 new
225 Sep 01 06:55 pub
0 Sep 01 08:00 z
1759 Aug 23 06:52 config.cfg
225 Aug 24 08:01 pubkey2
283 Aug 24 07:39 pubkey1
0 Sep 01 06:22 new
225 Sep 01 06:55 pub

Advertisement

Table of Contents
loading

Table of Contents