ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

Is it possible to use this script on Windows? #49

Open plastikat opened 6 years ago

plastikat commented 6 years ago

Hi. I had an intent to use your script on Windows inside a Git-bash session (which is an msys2 bash session under the hood). I changed your script's shebang to point to the official Python for Windows binary, but it turned out there are fcntl and termios dependencies (which are Unix-only). So, I was wondering, is it even feasible to make this script work in the environment I have or the logic it too much Unix-specific?

rcdailey commented 5 years ago

+1 this needs an answer

Korolen commented 5 years ago

It seems to be working (at least the basics) for me in Babun. <3

kgraefe commented 4 years ago

Both dependencies were introduced with https://github.com/ccontavalli/ssh-ident/commit/e6145bdf0a51c18157f097d01823a9e3017428d4 . So to use the script on Windows Git Bash you can

(I did not test this; nor do I use Git Bash.)

maddes-b commented 3 years ago

Side note: When using a Plink/Pageant from Putty on Windows then you can use the renamed host approach from the git FAQ. See also my post at superuser.com: https://superuser.com/a/1616186/557798

maddes-b commented 2 years ago

Had a more deeper look into this and the Python dependencies will be difficult to resolve. Some parts have to be "disabled" for Windows which may lead to unusability. Do not know if Cygwin emulates those possibilities and/or supports those Python packages.

kgraefe commented 2 years ago

Do not know if Cygwin emulates those possibilities and/or supports those Python packages.

Yes, it does.