Logo Blog

Setup SSH

Create a key pair (without a password):

ssh-keygen -f mykey -P ""

Copy the public key to the server:

ssh-copy-id -i ./mykey.pub user@host

Update /etc/ssh/sshd_config to include:

PubkeyAuthentication yes
PasswordAuthentication no