Terminating the Connection to the Remote SFTP Server
Follow these steps to terminate the connection to the remote SFTP server:
To do...
Enter SFTP client view
Terminate the
connection to the
remote SFTP server
and return to user view
SFTP Client Configuration Example
Network requirements
As shown in
Figure
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
Use the command...
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 } ] *
bye
exit
quit
2-1, an SSH connection is established between Switch A and Switch B. Switch A, an
Required
Execute the command in user
view.
Required.
Use any of the commands.
These three commands function in
the same way.
2-5
Remarks