Bob Cox <[EMAIL PROTECTED]> wrote: > This is how I do it when setting up a new machine: > ssh-keygen -t dsa > <enter, enter, enter> > cat ~/.ssh/id_dsa.pub | ssh [EMAIL PROTECTED] 'cat >> .ssh/authorized_keys2' > <enter password>
Mmm. Interesting as I find authorized_keys works for me (none of my Debian systems claims to understand your ssh2 variant). ssh-keygen -t rsa # Does anyone know whether dsa or rsa is better? ... ssh [EMAIL PROTECTED] 'mkdir -pm 700 .ssh;cat>>.ssh/authorized_keys' <.ssh/id_rsa.pub Actually I have a little script that does this for me (ssh-auth) that I really ought to get round to offering to the ssh client distribution. It's at http://www.roaima.co.uk/stuff/20080819/ssh-auth if anyone's interested in critiquing it first. Chris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]