[TriLUG] Public Key Authentication with SSH

Matt Pusateri mpusateri at wickedtrails.com
Thu Jan 26 10:24:56 EST 2006


On the local host you need to use ssh-add to add your key to your
keystore for that login session.

Also look into keychain as it will allow you to cache keys across
logins.  http://www.gentoo.org/proj/en/keychain/


Matt P.


On Thu, January 26, 2006 10:15 am, Brian Blater (BBList) wrote:
> 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
> options:
> PubkeyAuthentication yes
> AuthorizedKeysFile      .ssh/authorized_keys
>
> On the local host I've modified ssh_config with the following options:
> HostKeyAlgorithms ssh-dss
> PreferredAuthentications
> hostbased,publickey,keyboard-interactive,password
> PubkeyAuthentication yes
>
> 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.
>
> Thanks,
> Brian
>
> --
> TriLUG mailing list        :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>





More information about the TriLUG mailing list