Skip to content
Yaroslav Gosudarkin edited this page Aug 18, 2021 · 2 revisions

Add ssh key to github

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

How to connect to some server

  1. put private key to .ssh
  2. set permissions
In your home directory:

chown -R your_user:your_user .ssh
As for rights, go with 700 for .ssh and 600 for authorized_keys

chmod 700 .ssh
chmod 600 .ssh/authorized_keys
  1. ssh -i .ssh/key -p PORT name@host
Clone this wiki locally