About passwordless ssh

ยท 90 words ยท 1 minute read

ssh-copy-id ๐Ÿ”—

Using ssh-copy-id feels good.

About Permissions ๐Ÿ”—

Make sure the permissions of the two files on the server side are as below:

  1. ~/.ssh: 700
  2. ~/.ssh/authorized_keys: 600

If not, chmod them to be so.

Algorithm ๐Ÿ”—

Make sure the algorithm is supported on the local side i.e. have the option PubkeyAcceptedKeyTypes +ssh-rsa.

Git Servers ๐Ÿ”—

If it’s about a git server, make sure the setting is related to the right host e.g.

Host github.com
 Hostname github.com
 User Yuan-Ru-Lin
 IdentityFile ~/.ssh/github

where ~/.ssh/github is the identity whose pubkey are added to your GitHub account.