sftp [username@]hostname
sftp is a program for transferring files to and from a remote computer. It is interactive, just like ftp used to be, but uses the secure encryption of ssh.
Once you connect with the remote computer, giving a password if necessary, you can type the following interactive commands to change directories and to transfer files between your local computer and the remote computer:
| get filename | retrieves remote file and stores it to local computer |
| put filename | upload local file to store on remote computer |
| cd path | change remote directory to path |
| ls | list remote files |
| pwd | print remote working directory |
| chmod mode path | change permission mode of remote file/directory |
| rename oldfilename newfilename | rename remote file |
| rm filename | remove remote file |
| mkdir path | create remote directory |
| rmdir dirname | remove remote directory |
| lcd path | change local directory to path |
| lpwd | print local working directory |
| lls | list local files |
| help | display help text |
| quit | quit sftp |