Set Up SSH
Author: Timothy Beach
less than a minute
What is SSH?
SSH (Secure Shell) is a network protocol that allows you to connect to other machines on your network or out on the internet. It’s a secure way to connect to other machines and perform tasks remotely.
Generate an SSH key pair
To connect to other machines using SSH, you’ll need to generate an SSH key pair. You can do this using the ssh-keygen
command. If you run ssh-keygen without any options, it will use the ed25519 algorithm to generate your key pair.
Copy your public key to the remote machine
Once you’ve generated your SSH key pair, you’ll need to copy your public key to the remote machine. You can do this using the ssh-copy-id
command.
Video tutorial
Below is a video that walks you through the process of generating an SSH key pair and copying your public key to the remote machine.
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/M2gKFd36e1Y?autoplay=0&controls=1&end=0&loop=0&mute=0&start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"
></iframe>
</div>