search by tags

for the user

adventures into the land of the command line

enabling rsa key authentication on a remote host

sometimes, the ssh configuration on a host won’t have enabled key based authentication, so the only way you can log in is with a password. if you want the ssh on the host to allow authentication using keys, you can enable it in ssh’s config. edit the ssh config file

$ sudo vim /etc/ssh/sshd_config

uncomment these lines

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

restart the ssh daemon to relod the config

$ sudo /etc/init.d/sshd reload

now you can use ssh keys