H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 528
49-15
To do…
Use the command…
Remarks
Remove a directory on the remote SFTP
server
rmdir
pathname
delete
remotefile
Delete a specified file
remove remote-file
Optional
Both commands have
the same effect.
dir
[ remotefile ] [ localfile ]
Query a specified file on the SFTP
server
ls
[ remotefile ] [ localfile ]
Optional
If no file name is
provided, all the files in
the current directory are
displayed.
The difference between
these two commands is
that the dir command
can display the file
name, directory as well
as file attributes; while
the Is command can
display only the file
name and directory.
Download a remote file from the SFTP
server
get
remotefile [ localfile ]
Upload a local file to the remote SFTP
server
put
localfile [ remotefile ]
Rename a file on the remote server
rename
remote-source remote-dest
Optional
bye
exit
Exit SFTP client view and return to
system view
quit
The three commands
have the same effect.
Display the online help about a specified
command concerning SFTP
help
[ all | command-name ]
Optional
If you specify to authenticate a client through public key on the server, the client needs to read the local
private key when logging in to the SFTP server. Since both RSA and DSA are available for public key
authentication, you need to use the identity-key key word to specify the algorithms to get correct local
private key; otherwise you will fail to log in. For details, see SSH in H3C WX3000 Series Unified
Switches Switching Engine Configuration Guide
.
Specifying the source interface or source IP address for an SFTP client
You can specify the source interface or source IP address for the device acting as an FTP client, so that
it can connect to a remote SFTP server.
Follow these steps to specify the source interface or source IP address for an SFTP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—