Using SSH and SFTP in Mac OS X

SSH and SFTP are command line applications available from the Terminal (located at /Applications/Utilities/Terminal).

SSH

SSH client is a program for logging into a remote machine and for executing commands on a remote machine.

Connecting

To connect using ssh type at the terminal:

ssh username@host_server

Username is your network account username and host_server is the remote server to which you're connecting.

SFTP

SFTP is an interactive file transfer program, similar to ftp, which performs all operations over an encrypted ssh transport.

Connecting

To connect using sftp type at the terminal:

sftp username@host_server

Username is your network account username and host_server is the remote server to which you're connecting.

Commands

The commands available in SFTP are:

CommandDescription
pwdPrint working directory of remote host
lpwdPrint working directory of local client
cdChange directory on the remote host
lcdChange directory on the local client
lsList director on the remote host
llsList directory on the local client
mkdirMake directory on remote host
lmkdirMake directory on local client
getReceive file from remote host to local client
putSend file from local client to remote host
helpDisplay help text

SRC: http://answers.stat.ucla.edu/groups/answers/wiki/7a848/

Add new comment