How to enable SSH Key authentication on Linux VPS

preview_player
Показать описание
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:

Download PuTTY (includes PuTTY SSH Client, PuTTYgen and Pageant):

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
Рекомендации по теме
Комментарии
Автор

You left out the most important part at the end.
systemctl restart sshd

MichaelSharpTechniSmart
Автор

Hello, how can i find where you can type the command? Its in 1:48 seconds

lionellgeronimo
Автор

Hello, I have tried to log in through Putty as the root user and with the Contabo login password but it won't let me, what should I do?

autodidactaHN
Автор

sir, please upload tutorial create ssh in vps for metod slowdns


you can find tutorial slowdns in opentunnel


thanks before

noobff
join shbcf.ru