How to login in the server without password

less than 1 minute read

Published:

On client

  1. use ssh-keygen to generate public key of local machine.
  2. copy id_rsa.pub

On server

  1. under ~/.ssh, execute touch authorized_keys && chmod 600 authorized_keys
  2. copy id_rsa.pub into authorized_keys