I am using Pageant on my Windows machine to manage my SSH key. I have used ssh-agent before, but since Vagrant does not use ssh but net-ssh on vagrant up/provisioning I need to have my key in Pageant to use agent forwarding there.
I heavily use my ~/.ssh/config file to configure host shortcuts, keys they should use etc.
The .ppk file that pageant uses is not compatible with the ssh client, so I can not put it in the IdentifyFile directive.
I could, of course, let my ssh-agent run, too, but this kind of duplicates everything.
How do I combine pageant with my ssh client?
To clarify what I want to do:
- Add my SSH-Key to Pageant
- Configure firstname.lastname@example.org in the ~/.ssh/config as 'myhost'
Host myhost User calo Hostname myhost.com IdentityFile ~/.ssh/myhost
- Open up a git bash and type
ssh myhostto connect to my host without having to put down my password again, because it would be taken from the pageant.