Internet Offline: automatic ssh remote login
Sumber: https://onnocenter.or.id/wiki/index.php/Internet_Offline:_automatic_ssh_remote_login
Buat id_dsa.pub & id_rsa.pub
chmod 700 ~/.ssh ssh-keygen -t dsa ssh-keygen -t rsa ssh-copy-id user@machine ssh-copy-id [email protected] ssh [email protected] 'chmod -R go= ~/.ssh' ssh [email protected] 'chown -R pi:pi ~/.ssh'
Alternative yang lebih panjang:(
ssh [email protected] 'mkdir .ssh' ssh [email protected] 'touch ~/.ssh/authorized_keys' cat ~/.ssh/id_dsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys'
Lakukan hal sebaliknya dari server ke client .. supaya aman aja ..