Amazon Ad

Featured Post

Tuesday, May 15, 2012

How to arrange for keyless SSH

ssh-keygen -t dsa

cat /root/.ssh/id_dsa.pub >> /mnt/toaster0/etc/sshd/root/.ssh/authorized_key

3 comments:

James said...

a small but important point - the filename should be "authorized_keys" (not "authorized_key").

Also - I had to create the "root/.ssh" directories under sshd as they didn't exist.

cd /mnt/filerA/vol/vol0/etc/sshd
mkdir -p root/.ssh
cat ~/.ssh/id_dsa.pub > authorized_keys

and it worked just fine :)

thanks so much for that tip!!!!

James said...

a small but important point - the filename should be "authorized_keys" (not "authorized_key").

Also - I had to create the "root/.ssh" directories under sshd as they didn't exist.

cd /mnt/filerA/vol/vol0/etc/sshd
mkdir -p root/.ssh
cat ~/.ssh/id_dsa.pub > authorized_keys

and it worked just fine :)

thanks so much for that tip!!!!

James said...

a small but important point - the filename should be "authorized_keys" (not "authorized_key").

Also - I had to create the "root/.ssh" directories under sshd as they didn't exist.

cd /mnt/filerA/vol/vol0/etc/sshd
mkdir -p root/.ssh
cat ~/.ssh/id_dsa.pub > authorized_keys

and it worked just fine :)

thanks so much for that tip!!!!