Table of Contents
Overview
Anyone who administers Linux machines likely knows secure shell. Without this tool, administering those servers remotely would be quite challenging. It would also become harder to move files back and forth, at least with a modicum of security. That’s where secure copy comes into play. With the SCP command, you can copy files to and from a remote Linux server through an encrypted SSH tunnel.
SSH keys
Command
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME scp -i ~/.ssh/id_rsa.pub USER@SERVER:/home/USER/FILENAME /home/USER/FILENAME ssh -i BioModels-OpenSSH-Internal.pem ec2-user@3.142.90.222
Voila!
References
[1] https://www.techrepublic.com/article/how-to-use-secure-copy-with-ssh-key-authentication/
[2] https://docs.climb.ac.uk/reference/scp/
