I added the public SSH key to the authorized_keys file. ssh localhost
should log me in without asking for the password.
I did that and tried t
It seems like a permission problem. Usually it happens if the permission of some file/directory is not correctly set up. In most case they are ~/.ssh
and ~/.ssh/*
. In my case they are /home/xxx
.
You can change the log level of sshd by modifying file /etc/ssh/sshd_config
(search for LogLevel
, and set it to DEBUG
) and then check the output in file /var/log/auth.log
to see what happened exactly.