How to enable SSH Key authentication on Linux VPS

Ғылым және технология

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:
contabo.com/blog/how-to-use-s...
Download PuTTY (includes PuTTY SSH Client, PuTTYgen and Pageant):
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

Пікірлер: 7

  • @MichaelSharpTechniSmart
    @MichaelSharpTechniSmart Жыл бұрын

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

  • @ashleydontlookatme

    @ashleydontlookatme

    Жыл бұрын

    thx man I also wondered why it didn't work Thank you again

  • @autodidactaHN
    @autodidactaHN2 ай бұрын

    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?

  • @lionellgeronimo7565
    @lionellgeronimo7565Ай бұрын

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

  • @breheem
    @breheem2 жыл бұрын

    Good tutorial !

  • @noobff9259
    @noobff92592 жыл бұрын

    sir, please upload tutorial create ssh in vps for metod slowdns you can find tutorial slowdns in opentunnel thanks before

Келесі