given the key and a configuration:


<private key>


StrictHostKeyChecking no
Host github.com
    Hostname ssh.github.com
    User iamcontributor
    Port 443
    IdentityFile ./githubcontributor_rsa

What is necessary to do so that the above key is found?

I already tried to place a symbolic link in ~/.ssh targeting work/.ssh

  • 1
    I only now see that the IdentityFile line is using a relative path. You seem to be under the impression that this path is relative to the configuration file itself. I am not sure this is the case. Is there any documentation on this? (The man page on ssh_config(5) does not mention this in the section on IdentityFile.) What happens when you give an absolute path here?
    – Jurrie
    Commented Aug 8, 2020 at 19:13

1 Answer 1


Are you sure your listed hostname is correct? I would assume it's github.com. GitHub documentation does not list ssh.github.com.

Also, according to this answer, using IdentitiesOnly yes is recommended, though this is most likely not the issue here.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .