193
To do… Use the command… Remarks
5. Display the files under a
directory.
dir [ -a | -l ] [ remote-path ]
Optional.
The dir command functions as the
ls command.
ls [ -a | -l ] [ remote-path ]
6. Delete one or more directories
from the SFTP server.
delete remote-file&<1-10>
Optional.
The delete command functions as
the remove command.
remove remote-file&<1-10>
Displaying help information
Display a list of all commands or the help information of an SFTP client command, such as the command
format and parameters:
To do… Use the command… Remarks
1. Enter SFTP client view.
For more information, see
"Establishing a connection to the
SFTP server."
Required.
Execute the command in user
view.
2. Display a list of all commands
or the help information of an
SFTP client command.
help [ all | command-name ] Required.
Terminating the connection to the remote SFTP server
To do… Use the command… Remarks
1. Enter SFTP client view.
For more information, see
"Establishing a connection to the
SFTP server."
Required.
Execute the command in user
view.
2. Terminate the connection to
the remote SFTP server and
return to user view.
bye Required.
Use any of the commands.
These commands all function in
the same way.
exit
quit
SFTP client configuration example
Network requirements
As shown in Figure 60, an SSH connection is required between Switch A and Switch B. Switch A, an
SFTP client, needs to log in to Switch B for file management and file transfer. Use publickey
authentication and the RSA public key algorithm.
Figure 60 Network diagram for SFTP client configuration