How to login in the server without password
Published:
On client
- use
ssh-keygen
to generate public key of local machine. - copy
id_rsa.pub
On server
- under
~/.ssh
, executetouch authorized_keys && chmod 600 authorized_keys
- copy
id_rsa.pub
intoauthorized_keys