ssh-keygen
ssh-keygen copied to clipboard
windows generate process fail
ssh-keygen is a good tool to make a ssh key easily. But when I use it on window 7 system. It would fail. the callback will not return error object at the same time.
I look up the source code and find the bin which the program use . I click it directly. It throw a error like this
and I change the bin with portable msysgit bin portalble link using the files like
It work again.
I hope the problem can be solved to make the project better
If anybody wants to debug this and submit a pull request to fix it, I would appreciate it!
Hey - I've picked this one up. I have it working on 64bit machine with ssh-keygen from the latest portable Git for Windows. Just gigging out a 32-bit vm to test the other!
Will PR soon.
SOLVED !!! After a bit of debugging. There is an exe file in the bin directory of this library. When you try to open any of them manually you get an error saying that there are missing dll files related to MSYS. It took me all day to install MSYS properly. so here are the links to solve this problem as there are a lot of sources out there that didn't solve the problem.
- https://www.youtube.com/watch?v=ySE4HN4jcVw (follow the instructions in this tutorial)
- if you have a missing dll still ... download this dll helper and it will fix it for you https://www.az-partners.net/apps/dll-helper/download?ap=25 Bottom line is the problem is with the MYSYS and MINGW on your pc and not with this library
Hey - I popped a PR in for this a while ago; https://github.com/ericvicenti/ssh-keygen/pull/13. If you pull that branch it should work...
I faced this exact same issue indeed due to missing msys dlls .
Actually I have also seen that on some windows machine (do not know if this is the case for all of them now), ssh-keygen can be executed from the windows terminal directly. But I do not know how far this is true;
So I will probably try to use the PR #13 .