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
Answertopia.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
 
user@server:/destination/directory/

You can similarly fetch a file:
$ 
scp
 
user@server:/path/to/wantedfile destinationFile

Or even between two remote servers:
$ scp 
user1@server1:/path/to/source
 
user2@server2:/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