I have tried to configure ssh to use public key authentication
/etc/ssh/sshd_config has got this parameters.
RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes
But I'm still being prompted for password. If I use
I can't login
It works but only for root user.
My problem was, I had this parameter
I can login with keys with root user if I use
In the system there is only a /root/.ssh directory an authorized_keys file in this directory
How can I add this to other users, if there isn't, in this system, a home/$USER/.ssh directory and authorized_keys file for each user?
Is there a way to configure for each user? I will need diferent authorized_keys files for each user.
Is possible to configure for a different hosts, domains or ips? similar to httpd.conf