Solved Strange behaviour of SSH. Why?

Hello all!

Setting up SSH daemon on FreeBSD and having troubles with rsa-key authentication. It's ignoring keys at all.
The sshd_config contain this lines:
Code:
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
PubkeyAuthentication yes
PermitRootLogin no
PasswordAuthentication no

But when trying to access server via SSH it's asking me about password and when enter password allow me to login.
Why so?
 
Hello. Are you getting asked for the key's password or the server's password? If it's asking for ssh key's password, then you can run ssh-agent then you will not be asked for the ssh key's password. ssh-agent alone doesn't last longer so I use security/keychain for that matter. Maybe you didn't restart sshd service so changes made to sshd_config didn't get applied.
 
Hello. Are you getting asked for the key's password or the server's password? If it's asking for ssh key's password, then you can run ssh-agent then you will not be asked for the ssh key's password. ssh-agent alone doesn't last longer so I use security/keychain for that matter. Maybe you didn't restart sshd service so changes made to sshd_config didn't get applied.
restarted and rebooted
 
Back
Top