ssh-ident
ssh-ident copied to clipboard
Is it possible to use this script on Windows?
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?
+1 this needs an answer
It seems to be working (at least the basics) for me in Babun. <3
Both dependencies were introduced with https://github.com/ccontavalli/ssh-ident/commit/e6145bdf0a51c18157f097d01823a9e3017428d4 . So to use the script on Windows Git Bash you can
- either figure out how to detect and pass the TTY to ssh-add on Windows Git Bash
- or disable the TTY logic and live with the limitations.
(I did not test this; nor do I use Git Bash.)
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
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.
Do not know if Cygwin emulates those possibilities and/or supports those Python packages.
Yes, it does.