SFTP & SCP

SCP

Git Bash has scp but not sftp.

$scp -i <identity_file_name> -P <port_number> ./201* user_name@hot_name:<destination_directory>

Now i can upload all the files that start with 201, and as long as i’m in the same folder where the files
are.

SFTP

It is very easy to perform upload and download files once we get into the sftp shell.
It can be done by issuing the following command. If you don’t have the public/private key implemented then you
have to enter the password to login.

$sftp -i<identify_file_name> -P<port_number> user_name@host_name

Once you are in the shell, it will look like this

sftp>

To upload a file

sftp>put <file_name>

To download a file

sftp>get <file_name>
Posted in SFTP

Comments are closed.