![]() Thanks to the scp command, you can securely copy files to and from remote machines with ease. If you want to copy that file from the remote server to your Documents directory on your local machine, the command would be scp /home/USER/DocumentsĪnd that’s all there is to it. Upon successful authentication, the file will copy to the remote server. You’ll be prompted for your remote password. The command to copy that file to the server would be scp Documents/trtest USER is your username. Say, for instance, you have the file trtest in the Documents directory on your desktop computer, and you want to copy it to your home directory on a machine at IP address 192.168.1.161. The scp command does work with SSH key authentication, so if you have it enabled, you shouldn’t have any problems with the command. Let me show you how it’s done.Īll you’ll need for this are two machines, both of which have SSH installed. Fortunately, Secure Shell includes a command that makes copying files to and from a remote machine not only secure but fairly easy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |