Learn to use the scp command to switch information securely with this step-by-step tutorial by professional Jack Wallen.
When you recurrently have to repeat information out of your desktop to a different desktop or server, you won’t need to use much less safe protocols akin to FTP. Luckily, Safe Shell features a command that makes copying information to and from a distant machine not solely safe however pretty simple. Let me present you the way it’s finished.
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’ve got it enabled, you shouldn’t have any issues with the command. How does it work? Straightforward.
Say, for example, you’ve the file trtest within the Paperwork listing in your desktop laptop, and also you need to copy it to your house listing on a machine at IP tackle 192.168.1.161. The command to repeat that file to the server can be
scp Paperwork/trtest USER@192.168.1.161:/house/USER
the place USER is your username.
You’ll be prompted to 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 can be
scp USER@192.168.1.161:/house/USER/trtest /house/USER/Paperwork
the place USER is your username.
And that’s all there’s to it. Due to the scp command, you’ll be able to securely copy information to and from distant machines with ease.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise professionals from Jack Wallen.