Setting up SSH to accept authenticate hosts without passwords
I'm having trouble getting ssh to accept authenticated hosts without having to enter a password. Have any of you been able to do this?
Here's what I've done so far: - copied my key from /etc/ssh/ssh_host_dsa_key.pub on machine one into the file /root/.ssh/authorized_keys on machine two. When I try to connect from machine one to machine two, it stills asks me for a password (which I don't want). Thanks in advance for your help. J. Haynes Bozeman, Montana |
Hi!
I dunno SSH, but since you're already lost... :-) Try removing the passwords of the hosts you want to connect to with: passwd -d username HTH... vfs. |
Authenticating SSH connections without passwords
Actually, I just figured this out. You have to create new RSA keys on the host machine, and add the public key to the file called 'authorized_keys2' on the remote machine.
Then you can use ssh to run commands on the remote machine without having to enter a password. Which is really cool because you can then run commands like df to make sure hard drives on remote machines are not filling up. www.terrafirmasolutions.com |
See this series of 3 articles. It's very complete and a bit complicated but in the second article explain what you want to do.
http://www-106.ibm.com/developerwork...ry/l-keyc.html http://www-106.ibm.com/developerwork...brary/l-keyc2/ http://www-106.ibm.com/developerwork...brary/l-keyc3/ I have checked the urls and they are up. But if you have trouble with them email me and i send to you. |
SSH Articles
Thanks! These look really good and the writer has written some really good artles about reiserfs and ext3 as well.
|
All times are GMT -5. The time now is 12:11 PM. |