File Management Commands
OmniSwitch 6250 CLI Reference Guide November 2009 page 7-51
sftp
Starts an SFTP session. An SFTP session provides a secure file transfer method.
sftp {host_name | ip_address}
Syntax Definitions
host_name Specifies the host name for the SFTP session.
ip_address Specifies the IP address for the SFTP session.
Defaults
N/A
Platforms Supported
OmniSwitch 6250
Usage Guidelines
• You must have a valid username and a password for the specified host.
• If SFTP is not enabled, use the ftp6 command to enable it.
• You can establish up to 4 SFTP sessions from an OmniSwitch (when it acts as FTP Client) and up to 8
SFTP sessions towards an OmniSwitch (when it acts as FTP Server).
• After logging in, SFTP commands are supported. They are defined in the following table:
cd path Change remote path to ‘path’.
lcd path Change local directory to ‘path’.
chmod mode path Change permissions of file ‘path’ to ‘mode’.
help Display command help information.
get remote-path [local path] Download a file from the remote path to the local path.
lls [path] Display local directory listing.
ln oldpath newpath Creates a symbolic link (symlink) to the remote file.
symlink oldpath newpath Creates a symbolic link (symlink) to the remote file.
lmkdir path Create local directory.
lpwd Print local working directory.
ls [path] Display remote directory listing.
mkdir path Create remote directory.
put local-path [remote-
path]
Upload file.
pwd Display remote working directory.
exit Quit the sftp mode.