diff --git a/guide/english/linux/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server/index.md b/guide/english/linux/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server/index.md index 93bf8c2797..1d6861f786 100644 --- a/guide/english/linux/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server/index.md +++ b/guide/english/linux/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server/index.md @@ -7,39 +7,45 @@ This article is a quick tutorial on how to use Secure File Transfer Protocol (SF ### Testing SSH 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. -```unix +```bash 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. -```unix +```bash sftp your_username@hostname_or_ip_address ``` To list helpful commands: -```unix +```bash help ``` ### Transfer files and folders To download a file: -```unix +```bash get ``` To download a folder and its contents, use the "-r" flag (also works for uploading): -```unix +```bash get -r ``` To upload a file: -```unix +```bash put ``` ### Change folders To change the local folder: -```unix +```bash lcd ``` To change the remote folder: -```unix +```bash cd ``` + +### Quit sftp. +Once done with file transfer you can exit SFTP prompt using `bye` command +`sftp> bye` + +For more info on SFTP use 'man sftp' in linux terminal.