Copy files over ssh using scp command

Just a quick reminder on how to copy files from a remote location or vice versa over an ssh connection.
Copy files from your local computer to a remote server

scp somefile username@server:/home/username/

Copy files from a remote server to your local computer

scp username@server:/home/username/file_name /home/local-username/file-name

Original source:

Leave a Reply

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

Please reload

Please Wait