Comandos SFTP

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 filenameretrieves remote file and stores it to local computer
put filenameupload local file to store on remote computer
cd pathchange remote directory to path
lslist remote files
pwdprint remote working directory
chmod mode pathchange permission mode of remote file/directory
rename oldfilename newfilenamerename remote file
rm filenameremove remote file
mkdir pathcreate remote directory
rmdir dirnameremove remote directory
lcd pathchange local directory to path
lpwdprint local working directory
llslist local files
helpdisplay help text
quitquit sftp