You Are Here: Home » How-To » Linux » Security

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

By Debjit on July 26th, 2009 
Advertisement

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

Advertisement







How-To securely transfer files between two computers in a network? was originally published on Digitizor.com on February 15, 2009 - 11:08 am (Indian Standard Time)