Remote Connection - File Transfer on Linux
Secure copy: A command you can use in Linux to copy files between computers on a network
- It utilizes SSH to transfer the data. Just like you would SSH into a machine, you can send a file that way.
Let’s say we want to copy over a file from our computer to another computer. To do this, we can run the SCP command with a few flags. In this command, we run the SCP command with the path of the file we want to transfer to the user account, host name, and path where we want to copy the file to.
Now it prompts us with a login information in the computer we want to send the file to.
After we enter this, we can verify that the file successfully copied over.
The SCP command is a super useful tool if you need to copy files to and from computers in a network.