SFTP Configuration Example 1135
Displaying Help
Information
This configuration task is to display a list of all commands or the help information 
of an SFTP client command, such as the command format and parameters.
Follow these steps to display a list of all commands or the help information of an 
SFTP client command:
Terminating the
Connection to the
Remote SFTP Server
Follow these steps to terminate the connection to the remote SFTP server:
SFTP Configuration 
Example
Network requirements
As shown in Figure 342, an SSH connection is established between Switch A and 
Switch B. Switch A, an SFTP client, uses the username client001 and password 
aabbcc to login to Switch B for file management and file transfer.
Delete a file from the SFTP 
server 
delete remote-file&<1-10> Optional
The delete command 
functions as the remove 
command. 
remove remote-file&<1-10>
To do…  Use the command…  Remarks 
To do…  Use the command…  Remarks 
Establish a connection to the 
remote SFTP server and 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. 
Display a list of all commands 
or the help information of an 
SFTP client command 
help [ all | command-name ] Required
To do…  Use the command…  Remarks 
Establish a connection 
to the remote SFTP 
server and 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. 
Terminate the 
connection to the 
remote SFTP server and 
return to user view 
bye Required.
Use any of the commands.
These three commands 
function in the same way. 
exit
quit