Copying files from remote server via scp

I have done copying files and even directories from remote servers before. However, this time it is more secure and password is not visible on the command line. Moreover, the file transfer goes through secure medium SSH.

Nothing fancy, this is how we do it.

scp copied-file.txt
scp /full/path/to/destination/file.txt
scp .
scp -r .
scp -r /home/user/backup/

In all these operations, the user is prompted to enter the password.

2 thoughts on “Copying files from remote server via scp”

  1. I use scp all the time. It’s very useful when it’s written in bash scripts by automating upload and download of remote files.

  2. Yes it is, although a bit slower due to the additional security layer.

    Thanks for visiting Sir Jed.

Leave a reply

Your email address will not be published. Required fields are marked *