Linux servers are by default secured by a password. However, this type of authentication is not ideal from a security standpoint because your server can be vulnerable to Brute-Force-, or dictionary attacks. SSH Keys are like a “keycard” to access your server without a password.
Although I'm running PuTTYgen on a Windows machine, the generated keys will be used with our Linux server!
Check out our Blogpost with more details:
https://contabo.com/blog/how-to-use-s...
Download PuTTY (includes PuTTY SSH Client, PuTTYgen and Pageant):
https://www.putty.org/
Commands used in this Video:
Checking SSH Version:
ssh -V
Creating the SSH Key directory:
mkdir .ssh
Moving into this directory:
cd .ssh
Creating the authorized_keys File, in which all public keys need to be stored (only one per line!):
nano authorized_keys
Opening the sshd_config to disable password authentication:
nano /etc/ssh/sshd_config
© 2022 Contabo GmbH
Video by:
Tobias "TM" Mildenberger aka. @realtmcsgo