H3C S5500-EI series Operation Manual page 1391

Hide thumbs Also See for S5500-EI series:
Table of Contents

Advertisement

Operation Manual – SSH
H3C S5500-EI Series Ethernet Switches
Note:
If you set the SSH authentication method to publickey, you need to configure the host
public key of SwitchA. For the specific configuration, refer to
Authentication.
# Enable the SFTP server.
[SwitchB] sftp server enable
2)
Configure the SFTP client (Switch A)
# Configure an IP address for VLAN interface 1.
<SwitchA> system-view
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ip address 192.168.0.2 255.255.255.0
[SwitchA-Vlan-interface1] quit
[SwitchA] quit
# Establish a connection to the remote SFTP server and enter SFTP client view.
<SwitchA> sftp 192.168.0.1
Input Username: client001
Trying 192.168.0.1 ...
Press CTRL+K to abort
Connected to 192.168.0.1 ...
The Server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:y
Enter password:
sftp-client>
# Display files under the current directory of the server, delete the file named "z", and
check if the file is deleted successfully.
sftp-client> dir
-rwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
drwxrwxrwx
-rwxrwxrwx
-rwxrwxrwx
sftp-client> delete z
The following files will be deleted:
/z
Are you sure to delete it? [Y/N]:y
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
1 noone
nogroup
2-8
Chapter 2 SFTP Service
When Using Publickey
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

Advertisement

Table of Contents
loading

Table of Contents