[KLUG Members] ssh keys don't work

Dirk H Bartley dbartley at schupan.com
Fri Feb 10 10:43:00 EST 2006


Being an accused script writer, I'll give you my favoritest shortest
script (1 line).

#!/bin/bash
cat ~/.ssh/id_dsa.pub | ssh $1 'cat >> ~/.ssh/authorized_keys2; chmod
644 ~/.ssh/authorized_keys2'

That is really all on one line.  The email editor did it.

Then just execute:
sshpush hostname

you will be asked for your password on hostname and then ssh to that
host and it should work without issue.


Dirk

On Thu, 2006-02-09 at 20:04 -0500, bill wrote:
> I'll give one of Dirk's "woohoo" yells.
> 
> I found the answer here:
> 
> http://www.openssh.com/faq.html#3.14
> 
> kind regards,
> 
> bill
> 
> 
>  On Thu, 2006-02-09 at 20:01, bill wrote:
> > Having logged in to a new box via SSH, I copied my SSH public keys to
> > the .ssh directory but ssh still asks for my password.
> > 
> > I tried both DSA (authorized_keys2) & RSA (authorized_keys) keys with no
> > luck.
> > 
> > Is that a setting in sshd_config?  If so, which one?  If not, what might
> > it be?
> > 
> > kind regards,
> > 
> > bill
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20060210/448cbc29/attachment.bin


More information about the Members mailing list