Ssh - automatic login

From OnnoWiki
Revision as of 06:37, 3 December 2011 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Sumber: http://wp.uberdose.com/2006/10/16/ssh-automatic-login/

  • public ssh key, cek pastikan ada file id_dsa.pub
~/.ssh
  • kalau belum ada id_dsa.pub di ~/.ssh lakukan
chmod 700 ~/.ssh
ssh-keygen -t dsa
  • copykan ke remote server
scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com:
  • di remote server append content public key id_dsa.pub ke ~/.ssh/authorized_keys dan delete file id_dsa.pub
cat id_dsa.pub >> .ssh/authorized_keys

Atau sekaligus lakukan dengan cara

cat ~/.ssh/id_dsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys'

jangan lupa delete id_dsa.pub dari home directory di remote server

selanjutnya kita dapat login tanpa di tanyakan password

ssh -l remoteuser remoteserver.com
ssh remoteuser@remoteserver.com


Referensi

Pranala Menarik