How to ban password use on Ubuntu Hardy?
I will be using Ubuntu instances on EC2 where passwords are not used but private keys are used to login via ssh.
Thanks for help.
Change the PasswordAuthentication line in /etc/ssh/sshd_config to no:
Old:
#PasswordAuthentication yes
New:
PasswordAuthentication no
And the restart sshd:
/etc/init.d/sshd restart
You should be good to go.