
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
Содержание S5120-EI Series
Страница 139: ...ii...
Страница 268: ...3 3 SwitchB system view SwitchB interface vlan interface 1 SwitchB Vlan interface1 ip address dhcp alloc...
Страница 328: ...i Table of Contents 1 Dual Stack Configuration 1 1 Dual Stack Overview 1 1 Configuring Dual Stack 1 1...
Страница 578: ...1 21 C...
Страница 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Страница 926: ...2 8...
Страница 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Страница 985: ...1 1...
Страница 1018: ...1 6...