How-To securely transfer files between two computers in a network?

Advertisements

Data security is the mantra of the day. Various Organisations employ Local Area Networks in the premises to ensure fast access and transfer of data between hosts. Transferring these files securely over the network is a big issue. But with linux and the SSH at our disposal, transferring files between hosts has now become fast, easy and very secure – minimizing all eavesdropping. We will need a small utility called scp. It uses the services of the SSH Daemon. Say you need to send a file to another host on your network, then the SSH daemon on that server should be ON.

For sending a file using this scp, we issue the following command:

scp <file> user@host:/home/user

Here, user is the username of any of the accounts of the computer you are sending the file to, and host is the name or the IP address of the computer. The above command will work fine only if the host to which you are sending the file has it`s SSH damon running on port 22 (as it is the default port).If the target host has it`s SSH daemon listening on some other port, say 352, then you need to use a modified verion of the above command:

scp -P 352 <file> user@host:/home/user

Manpages and Indiana Univ KB has more information.
Technorati Tags: scp, secure, file transfer



February 15th, 2009 Written by The Digitizor    

Free subscription: Subscribe RSS feed or get daily tips in your email
* Click confirmation link sent in email * Don't see the email? check spam folder

  Facebook 


Liked it? Share...   Digg It!   Submit to Del.icio.us   Submit to Reddit   Stumble   Submit to Identica   Slashdot It   Send to a friend via email


blog comments powered by Disqus

Trackbacks