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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 

8.2.2.4. 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 
localFile
 
[email protected]:/destination/directory/

You can similarly fetch a file:
$ 
scp
 
[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