Internet Offline: automatic ssh remote login

From OnnoWiki
Revision as of 08:11, 16 December 2018 by Onnowpurbo (talk | contribs) (Created page with "Buat id_dsa.pub chmod 700 ~/.ssh ssh-keygen -t dsa Copy ke remote server ssh pi@192.168.0.1 'mkdir .ssh' ssh pi@192.168.0.1 'touch ~/.ssh/authorized_keys' cat ~/.ssh/i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Buat id_dsa.pub

chmod 700 ~/.ssh
ssh-keygen -t dsa

Copy ke remote server

ssh pi@192.168.0.1 'mkdir .ssh'
ssh pi@192.168.0.1 'touch ~/.ssh/authorized_keys'
cat ~/.ssh/id_dsa.pub | ssh pi@192.168.0.1 'cat >> ~/.ssh/authorized_keys'


Pranala Menarik