get ssh to connect with out password

dbrett dbrett at tcn.net
Tue Apr 6 19:51:05 UTC 2004


I have made an attempt to have ssh connect without requiring password.  I
tried on my own with out success.  I found this site which I thought had
pretty good instructions.  Unfortunately it didn't work on RH9.  I tried
both ssh2 options.

david

http://bumblebee.lcs.mit.edu/ssh2/

First, generate a public/private DSA key pair on Ooga.

  ooga% ssh-keygen -t dsa -f ~/.ssh/id_dsa

When you are asked for a passphrase, leave it empty. Now send the public
key to Booga.

  ooga% cd .ssh
  ooga% scp id_dsa.pub user at booga:~/.ssh

Next, log in to Booga and add the public key to the list of authorized
keys.

  ooga% ssh user at booga

  booga% cd .ssh
  booga% cat id_dsa.pub >> authorized_keys2
  booga% chmod 640 authorized_keys2
  booga% rm -f id_dsa.pub

Note that the filename is authorized_keys2, not authorized_keys. That's
it; you're ready to ssh from Ooga to Booga without having to enter a
password. 





More information about the redhat-list mailing list