Where do I put SSH public key?

Where do I put SSH public key?
Answer
For this reason, this should never be done from root.
  1. Run ssh-keygen(1) on your machine, and just hit enter when asked for a password. This will generate both a private and a public key.
  2. Next, add the contents of the public key file into ~/.ssh/authorized_keys on the remote site (the file should be mode 600).
 

Tìm kiếm

Back
Top