Automatic SSH logon

Posted on Wednesday, July 1st, 2009 at 1:51 am in

Host1:

  1. ssh-keygen
  2. No PassPhrase (so automatic logon works)
  3. Default filename and path is ok
  4. cat ~/.ssh/id_rsa.pub
  5. Copy content of id_rsa.pub

Host2:

  1. Create ~/.ssh
  2. Create ~/.ssh/authorized_keys
  3. Paste content of clipboard into authorized_keys

Both steps vice vera

At the first logon a warning appears that the hostkey is added

to know_hosts. Yes to proceed.

That’s it 😉

Add your comment

Leave a Reply

Leave A Comment

Top