Watch the video:
Timestamps:
0:00 - Intro & Why you want SSH Key Authentication
0:45 - Creating an SSH key in Debian
0:52 - Generating keypair using ssh-keygen
1:38 - Generating keypair with PuTTY
2:20 - Saving key on server
3:25 - Connecting to server with SSH VSCode + RemoteSSH
5:30 - Disabling password login
6:40 - Verify server is secure
This video explains everything you need to know about securing your SSH shell for Linux/Debian with Key Authentication. This allows you to turn off password authentication and improve your SSH connection and server security.
View guide as text & Get commands for easy copy & paste: https://hub.tcno.co/linux/debian/key-auth/
ssh-keygen -t rsa -b 2048
PuTTYGen: https://www.puttygen.com/
sudo mkdir ~/.ssh
sudo touch ~/.ssh/authorized_keys
sudo chmod 700 -R ~/.ssh
sudo chmod 600 ~/.ssh/authorized_keys
sudo nano /etc/ssh/sshd_config
sudo service ssh restart