Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH prompting for password

Status
Not open for further replies.

toddyl

Technical User
Sep 26, 2005
102
US
Hi,

I created a script that would update the authorized_keys file on remote servers with the SSH RSA key for my central server. This script also generates and retrieves the SSH RSA key for the remote server and adds it to my central servers authorized_keys. By doing this I was able to connect to a list of servers, via SSH, without having to supply a password.

After a week of this working fine I now have problems that no matter what server I attempt to connect to, via SSH, from my central server I am being prompted for the users password.

Why is my SSH RSA key not working?

I checked the authorised_keys file on my central server and the other remote servers and these files contain the appropriate data.

So why am I being asked for a password?

Thanks,

Toddyl
 
Things to check:-
[ul]
[li]Password problems on the remote servers - these include
[ul]
[li]Expired passwords[/li]
[li]High unsuccessful login count[/li]
[li]Locked accounts[/li]
[/ul]
[/li]
[li]Home directory permissions problems - chmod 700 and see if that fixes things[/li]
[li]Try ssh -vvv user@remote_host to get full diagnostics[/li]
[/ul]

Ceci n'est pas une signature
Columb Healy
 
It turns out someone had regenerated the RSA key on my central server, and I was still using the old key.

I rolled out the new key to the other servers and all appears to be working ok.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top