[TriLUG] Public Key Authentication with SSH
Brian Blater (BBList)
bblist at ridetta.org
Thu Jan 26 10:15:29 EST 2006
The machines I'm using are SUSE 10 and SLES9. These boxes are internal
test boxes on our local network. For now I'm trying to setup public key
authentication with a blank password (for scripting purposes). Here is
what I've done so far.
On the remote host I've modified sshd_config with the following
On the local host I've modified ssh_config with the following options:
Restarted sshd on remote and local hosts.
On local host I ran ssh-keygen -t dsa -b 2048 -f filename-dsa.
(when prompted for a passphrase I just hit enter)
I then copied the filename-dsa.pub key to the remote host and added it
to the user's .ssh/authorized_keys file using cat.
At this point I should be done. I then ssh to the remote host as the
user, but I'm still prompted for a password. Not sure where I went
wrong, so any suggestions would be greatly appreciated.
More information about the TriLUG