Using Secure Shell Logging Into the Switch
page 2-18 OmniSwitch 6800/6850/9000 Switch Management Guide December 2007
identify the IP address or hostname for the device to which you are connecting. The following command
establishes a Secure Shell FTP interface from the local OmniSwitch to IP address 10.222.30.125.
-> sftp 10.222.30.125
login as:
Note. If SFTP is not enabled, use the scp-sftp command to enable it.
2 You must have a login and password that is recognized by the IP address you specify. When you enter
your login, the device you are logging in to, will request your password as shown here.
-> sftp 10.222.30.125
login as: rrlogin2
rrlogin2's password for keyboard-interactive method:
Note. You can use the sftp6 command followed by the IPv6 address or hostname of the SFTPv6 server to
start an SFTPv6 session. It is mandatory to specify the name of the particular IPv6 interface, if the SFTPv6
server has been specified using its link-local address. SFTPv6 sessions are supported only on OmniSwitch
6850 or 9000.
3 After logging in, you will receive the sftp> prompt. You may enter a question mark (?) to view
available Secure Shell FTP commands and their definitions as shown here.
sftp>?
Available commands:
cd path Change remote directory to 'path'
lcd path Change local directory to 'path'
chmod mode path Change permissions of file 'path' to 'mode'
help Display this help text
get remote-path [local-path] Download file
lls [path]] Display local directory listing
ln oldpath newpath Symlink 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 sftp
quit Quit sftp
rename oldpath newpath Rename remote file
rmdir path Remove remote directory
rm path Delete remote file
symlink oldpath newpath Symlink remote file
version Show SFTP version
? Synonym for help
Note. Although Secure Shell FTP has commands similar to the industry standard FTP, the underlying
protocol is different. See Chapter 1, “Managing System Files,” for a Secure Shell FTP application exam-
ple.