Skip to content

Instantly share code, notes, and snippets.

@omego
Last active February 20, 2023 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omego/22fd3ed762e7c0de70b421679590e9a4 to your computer and use it in GitHub Desktop.
Save omego/22fd3ed762e7c0de70b421679590e9a4 to your computer and use it in GitHub Desktop.

Deployer issues with ubuntu server and github:

In case of git@github.com: Permission denied (publickey)

on local machine do the following

  • Add the SSH key to the ssh-agent -- Start ssh-agent in the background run:
eval "$(ssh-agent -s)"

(will result agent id)

  • Add the SSH private key to the ssh-agent -- run:
ssh-add ~/.ssh/id_rsa

(where id_rsa is the keyname) -- run:

ssh-add -l -E sha256

(will result identifier id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment