Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy

 Secure copy (SCP)

Another option for transferring files between two computer with SSH is using the command scp. This attempts to use the same syntax as the tradition copy command (cp), but differs in that you can specify remote servers. For example, to send a file to a remote server, type
$ scp 
[email protected]:/destination/directory/

You can similarly fetch a file:
[email protected]:/path/to/wantedfile destinationFile

Or even between two remote servers:
$ scp 
[email protected]:/path/to/source
[email protected]:/path/to/destination

In every case that you access a remote server, you will be prompted for your credentials (such as a username and password).

  Published under the terms of the Open Publication License Design by Interspire