Custom identity file (id_rsa.pub) with git client
Whenever you want to use a custom identity file with ssh, you usually use the -i parameter.
This will validate against ~/.ssh/other_id_rsa.pub and not the default one at ~/.ssh/id_rsa.pub.
If you want to use this with the default git client, it won't work. You cannot specify the identity file when cloning/pulling from or pushing to a repository, yet.
So:
2
$ git pull origin master
will fail, because it's using the default rsa key at ~/.ssh/id_rsa.
Instead you can use this workaround.
Adjust your ~/.ssh/config and add:
2
3
4
Hostname example.com
User myuser
IdentityFile ~/.ssh/other_id_rsa
Now use the ssh host alias as your repository:
2
$ pull origin master
And it should use the other_id_rsa-key!
Messages
Does this work with <code>.pem</code> files as well? When I <code>ssh</code> into my <code>EC2</code> I usually do <code>ssh -i ~/aws/the-key-they-gave-me.pem</code>.
salve
i am new :D
I Kill You
Thanks asdasdasd
Por que meu GTA ñ entra?
junior.com
???junior.com
i coudnt start the game i need some help
rffff
RaFF
RaFF
d
sa
hi
Ola
:D
fesfdf


