Answer the question
In order to leave comments, you need to log in
Why doesn't ssh-authorization by key work from one machine?
Good afternoon.
There are three different machines. All on Windows. Each has a generated key (using Git for Windows). The public key from each machine is copied to the server in ~/.ssh/authorized_keys.
On the server, I don't see the line " Failed publickey... " in auth.log. There is only " Accepted publickey... " (for my IP) and " Accepted password... " (for a problematic machine, i.e. it can only enter with a password).
From two machines it starts up by key, from the third it asks for a password. What could be the matter, how to fix it?
Answer the question
In order to leave comments, you need to log in
Understood. There was some problem with msysgit. The key was not picked up. The problem is widespread, judging by Google. Everything worked with the new key. Thank you all for your attention.
More logs can be included.
on the server in /etc/ssh/sshd_config
set LogLevel DEBUG
restart sshd
try to connect from the problem machine.
look at the logs.
ssh -v from both machines and look for the difference.
Well, the rights to the files with the keys to compare for starters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question