How to copy files over SSH using SCP Linux command line tool

H

How Can We Help?

SCP = SECURE COPY (remote file copy program), with SCP you can copy files over an SSH connection securely and encrypted. With this Linux command line toolyou can copy files remotely from one remote server to another, or from you’re PC to a remote server.

USAGE = scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 … [[user@]host2:]file2

OPTIONS = Open a terminal window on you’re Linux box, or/and type in the command line the following command for all options for scpman scp

EXAMPLE
 = scp DevServer.test.lan:/var/www/html/testSite/images/image1.jpgtestserver:/var/www/html/images/NewImages

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me