Linux or UNIX securely copy files across a network computer

I know FTP is insecure, how do I securely copy files across a network computer? My network has Windows and Linux systems and how to copy files from one machine to another using ssh?

You need to use OpenSSH client and server technology to copy between two more networked computers. You can also find free ssh client tools. The scp command copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.

Copy from Linux to Linux/UNIX system

The syntax is:
scp {source} {destination}
scp file1 file2
scp file1 [email protected]:/path/to/destination/

To copy file called data.txt to ras.nixcraft.in Linux system using vivek username:
$ scp data.txt [email protected]:/home/vivek
Copy more than two files:
$ scp data.txt pic.jpg [email protected]:/home/vivek
Copy /data directory and all files inside /data i.e. recursively copy entire directories:
$ scp -r /data/ [email protected]:/home/vivek/
To copy a file from server2 to server1 while logged into server1:
scp [email protected]:/my/file/location/ /path/to/destination

Copy from Windows to Linux/UNIX system

You can download any one of the following free Windows SCP client

Just install above client and follow on screen instructions to copy files.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.