Vagrant SSH Errors, Putty

Hello, I am running Windows 7 x64 bit and am having issues trying to set up Putty. I used PuttyGen to generate a key, set my SSH/auth to the generated key and saved it as my default settings as stated. I changed the host and ports to the ones prompted as well. But when I open putty and enter vagrant as my username it says "Server refused our key." But then I can still log in with the password. I tried to run postinstall.sh and it failed saying I don't have permission, and then when I tried running it again it said there was no such file or directory.

I have set up the VM fine but as soon as I try to enter vagrant SSH it gives this error that I have no SSH client installed. Can I used Cygwin or Git instead for these lessons? Or is Putty necessary on Windows?

Sorry You must be a logged in, registered user to answer a question.

Answers

I only get the error message that says no SSH client installed when running vagrant SSH. However, I did not get the error messages you previously mentioned in your first paragraph. I also started out using Putty and find that this is not required in order to get vagrant ssh to work unless you want to use the putty terminal. I did change the insecure_private_key to .ppk. I'm not sure if this is necessary for my fix or not (I'm assuming not). I then installed git for windows. This will install the SSH client in a directory called Git/bin. I had to change my path environment to include Git/bin and did a reboot to load. I also had to patch ssh.rb in the Vagrant directory so that it knows I have SSH client installed.. You can google the exact code to patch this file. This will allow you to issue vagrant ssh in your own shell. Once you are able to vm to the box, you will issue the command sudo ./postinstall.sh at the command prompt.