Public Key Authentication SSH (Debian, Ubuntu)

Generate RSA keys on Client

mkdir ~/.ssh 
chmod 700 ~/.ssh 
ssh-keygen -t rsa -b 4096

Transfer Client Key to Host

ssh-copy-id username@host


ssh username@host

Disable Password Authentication On Host

sudo nano /etc/ssh/sshd_config

Look for <#PasswordAuthentication yes> and change it to <no>.

Restart SSH

sudo service ssh restart



Popular posts from this blog

How to be anonymous on the internet (99-100%)

Deep Web Link List (.onion)

Automatically Check The Raspberry Pi's Temperature (+Prevent Overheating)