1

I have a Mac and am running Parallels that has Windows 7 on it. I have an ssh key that I use to connect to github. When I go to my Parallels/Windows 7 and try to do

ssh -T [email protected]

I get permission denied (publickey).

If I create a new key on my Windows 7 VM, will that overwrite my current key that my Mac terminal uses?

Thanks.

2 Answers 2

0

Your key is stored in the folder ~/.ssh/ on your Mac. For example, on my system I have files called github_rsa (private key) and github_rsa.pub (public key). You can copy/paste the private key over to your Windows machine and install it there – it's just plain text.

0

I think that @miken32's answer should work. You should also be able to do it the way you suggest, creating a new key pair on the VM. Unless you have configured the VM to share the ~/.ssh/ directory on the host, nothing you do on the VM should have any effect on your existing key pair.

Note to self: never say "nothing"!

You must log in to answer this question.

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