
2-5
Terminating the Connection to the Remote SFTP Server
Follow these steps to terminate the connection to the remote SFTP server:
To do…
Use the command…
Remarks
Enter SFTP client view
sftp
[
ipv6
]
server
[
port-number
]
[
identity-key
{
dsa
|
rsa
} |
prefer-ctos-cipher
{
aes128
|
des
} |
prefer-ctos-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} |
prefer-kex
{
dh-group-exchange
|
dh-group1
|
dh-group14
} |
prefer-stoc-cipher
{
aes128
|
des
} |
prefer-stoc-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} ] *
Required
Execute the command in user
view.
bye
exit
Terminate the
connection to the
remote SFTP server
and return to user view
quit
Required.
Use any of the commands.
These three commands function in
the same way.
SFTP Client Configuration Example
Network requirements
As shown in
, an SSH connection is established between Switch A and Switch B. Switch A, an
SFTP client, logs in to Switch B for file management and file transfer. An SSH user uses publickey
authentication with the public key algorithm being RSA.
Figure 2-1
Network diagram for SFTP client configuration
Configuration procedure
During SFTP server configuration, the client public key is required. Therefore, you are recommended to
use the client software to generate an RSA key pair on the client before configuring the SFTP server.
1) Configure the SFTP client
# Create VLAN interface 1 and assign an IP address to it.
<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
# Generate an RSA key pair.
[SwitchA] public-key local create rsa
# Export the host public key to file
pubkey
.
[SwitchA] public-key local export rsa ssh2 pubkey
Summary of Contents for S5120-EI Series
Page 139: ...ii...
Page 578: ...1 21 C...
Page 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Page 926: ...2 8...
Page 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Page 985: ...1 1...
Page 1018: ...1 6...