If you haven’t already, test that you are able to SSH into the server. SFTP uses the Secure Shell (SSH) protocol, so if you are unable to SSH you probably won’t be able to SFTP either.

ssh your_username@hostname_or_ip_address

Start SFTP Session

This uses the same syntax as SSH and opens a session in which you can transfer files.

sftp your_username@hostname_or_ip_address

To list helpful commands:

help

Transfer files and folders

To download a file:

get <filename>

To download a folder and its contents, use the “-r” flag (also works for uploading):

get -r <foldername>

To upload a file:

put <filename>

Change folders

To change the local folder:

lcd <path/to/folder>

To change the remote folder:

cd <path/to/folder>

 

¿Fue útil la respuesta? 0 Los Usuarios han Encontrado Esto Útil (0 Votos)