Passwordless SSH

Login SSH dengan SSH key

Generate public and private key

ssh-keygen -t rsa -b 4096 -C "asuka@nerv"

Copy SSH key to server

ssh-copy-id asuka@labs.linuxsec.org -p 666

Generate SSH public key using existing private key.

ssh-keygen -y -f ssh-keygen -y -f ~/.ssh/id_rsa_asuka | \
tee ~/.ssh/id_rsa_asuka.pub

Reference

Last updated