Linux

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

Written by Ian Carnaghan · 24 sec read >

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] [[[email protected]]host1:]file1 … [[[email protected]]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

Last Updated On April 07, 2018
Written by 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. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of