Learn to use the scp command to switch recordsdata securely with this step-by-step tutorial by knowledgeable Jack Wallen.
When you frequently have to repeat recordsdata out of your desktop to a different desktop or server, you may not wish to use much less safe protocols akin to FTP. Fortuitously, Safe Shell features a command that makes copying recordsdata to and from a distant machine not solely safe however pretty simple. Let me present you the way it’s performed.
All you’ll want for this are two machines, each of which have SSH put in. The scp command does work with SSH key authentication, so when you have it enabled, you shouldn’t have any issues with the command. How does it work? Straightforward.
Say, for example, you’ve got the file trtest within the Paperwork listing in your desktop pc, and also you wish to copy it to your property listing on a machine at IP handle 192.168.1.161. The command to repeat that file to the server could be
scp Paperwork/trtest USER@192.168.1.161:/residence/USER
the place USER is your username.
You’ll be prompted in your distant password. Upon profitable authentication, the file will copy to the distant server. If you wish to copy that file from the distant server to your Paperwork listing in your native machine, the command could be
scp USER@192.168.1.161:/residence/USER/trtest /residence/USER/Paperwork
the place USER is your username.
And that’s all there’s to it. Because of the scp command, you’ll be able to securely copy recordsdata to and from distant machines with ease.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the most recent tech recommendation for enterprise professionals from Jack Wallen.