<< All Posts

Using SCP to copy files safely

How to transfer files safely? Don’t you know the SCP yet? (Secure Copy Protocol)

Do you know SCP ? This is a amazing tool to push or pull files using SSH with the same mechanisms for authentication of SSH.

As I always say.. let’s go to the examples!

From your computer to server running sshd:

scp SourceFile [email protected]:directory/TargetFile

From server to your computer:

scp [email protected]:directory/SourceFile TargetFile

From server to server:

scp SourceFile [email protected]:directory/TargetFile

So easy don’t you think? Yeah! And now the last tip:

From your computer to server using a specific ssh port:

scp -P YOUR_PORT SourceFile [email protected]:directory/TargetFile

<< All Posts


🇧🇷 🇨🇦
Runs on OpenBSD 🐡