Posts tagged: Automatic Logon

Automatic SSH logon

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 ;)

WordPress Themes