Last active
March 29, 2022 11:23
-
-
Save jwswj/6068684 to your computer and use it in GitHub Desktop.
Struggling with ssh working locally, agent forwarding not working correctly after moving your ssh keys around?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Firstly make sure that your permissions are correct on your SSH keys | |
My config looks like this: | |
-rw-r--r-- 1 jsmale staff 356 18 Sep 17:39 config | |
-rw-------@ 1 jsmale staff 1675 12 Jul 00:54 id_rsa | |
-rw-------@ 1 jsmale staff 400 12 Jul 00:54 id_rsa.pub | |
If they are wrong: | |
chmod 600 id_rsa id_rsa.pub | |
chmod 644 config | |
Then make sure that your ssh key is added correctly: | |
ssh-add -l | |
My response: | |
› ssh-add -l | |
2048 25:89:39:cf:85:b6:43:81:f7:e3:47:d0:63:84:2b:7c /Users/jsmale/.ssh/id_rsa (RSA) | |
If it isn't, then: | |
ssh-add | |
https://help.github.com/articles/using-ssh-agent-forwarding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment