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 user@host:/path/to/destination/

To copy file called data.txt to Linux system using vivek username:
$ scp data.txt
Copy more than two files:
$ scp data.txt pic.jpg
Copy /data directory and all files inside /data i.e. recursively copy entire directories:
$ scp -r /data/
To copy a file from server2 to server1 while logged into server1:
scp vivek@server2:/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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts