ssh-ident icon indicating copy to clipboard operation
ssh-ident copied to clipboard

Is it possible to use this script on Windows?

Open plastikat opened this issue 6 years ago • 6 comments

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?

plastikat avatar Mar 03 '18 11:03 plastikat

+1 this needs an answer

rcdailey avatar Oct 29 '18 21:10 rcdailey

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

Korolen avatar Nov 17 '18 03:11 Korolen

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.)

kgraefe avatar Mar 11 '20 21:03 kgraefe

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 avatar Jan 23 '21 21:01 maddes-b

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.

maddes-b avatar Jan 20 '22 20:01 maddes-b

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

Yes, it does.

kgraefe avatar Jan 21 '22 10:01 kgraefe