-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support #24
Comments
Hello @kapitanluffy, so it appears pxssh isn't supported on Windows (see pexpect/pexpect#567 or pexpect/pexpect#339). We'll try to come out with a native workaround. |
Hello there, please see #25 for implementation proposal 🙇 |
Thank you so much for trying to fix it! I will try to test it personally later but I looked into the code and the workaround seems fine 👍 I hope you don't mind me "approving" the PR 😅 |
I get this error @HorlogeSkynet |
Thanks for trying this out @kapitanluffy ! It looks like we've precisely fallen in Unfortunately mslex isn't packaged for Sublime. I was on the verge of vendoring it, but it's licensed under Apache v2, so I don't know whether we actually can redistribute it under GPL v3 in SSHubl... Tell me what you think about that ! Bye 👋 |
So I thought maybe there's something wrong with my current setup so I tested it on a fresh install. It logged the same thing (I didn't remove my [email protected] in this screenshot) It has a different error here though
In my regular sublime, it says
Not sure if that helps 😅 Also, the server I am connecting to has a password. I was not asked about it. Based on the gif in the readme, I assume it would ask me. I did try |
Investigated further and for the The I've put below the commands it generated and I ran it in my terminal and it gave the same errors shown in the terminus view # Not a socket
ssh -llupi -p22 -oServerAliveInterval=15 -oControlMaster=auto -oControlPath=D:\\area51\\sublime_text_build_4183_x64\\Data\\Cache\\SSHubl\\sockets\\9b945c3f-f4d7-439a-9b3a-6b7ccc5d542f -oControlPersist=60 192.168.1.120
# keyword controlpath extra arguments at end of line
ssh -llupi -p22 -oServerAliveInterval=15 -oControlMaster=auto "-oControlPath=C:\\Users\\xxx\\AppData\\Local\\Sublime Text\\Cache\\SSHubl\\sockets\\b64ddea6-6699-4bfd-9eaa-cfbeec72ca65" -oControlPersist=60 192.168.1.120 btw, if you need more active help in building your plugins, there's an active community in Discord that can help you out 👉 http://discord.sublimetext.io/ |
Thanks for debugging this out @kapitanluffy 🙏 So there are (still) two issues here :
I fear SSHubl won't be compatible with Sublime on Windows while Win32-OpenSSH doesn't support this core feature we rely upon in SSHubl internals...
The Gif shows a "non-interactive connection". In case of "interactive connections" (which eventually we might support for Windows), OpenSSH will ask for password directly in a Sublime view.
It's mostly help with Windows that we need 🤡 |
Is it not possible to not use ControlMaster feature? |
Unfortunately not. As most of PowerShell/Win32-OpenSSH#1328 participants, I fail to see how an official OpenSSH port for Windows can actually miss such a core feature (which was even redacted from project roadmap) 🙄 I'll push a patch for the remaining quoting issue and I guess we'll merge #25 "interactive connection" command so SSHubl will be compatible with Windows once an OpenSSH implementation starts supporting "Control Master"... Thanks, bye 👋 |
I see. Unfortunately, I don't think that will get supported since afaik Windows is treating sockets way differently unlike unix systems that treat everything as files. I do use sshfs but to mount remote fs using winfsp. Not sure if you have seen this or if this will help. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sure, merge it since it seems to be a big chunk of significant improvements even without the windows stuff. What I do suggest is that either remove the windows support or find a way to make it work even if it does not use the ControlMaster feature or even if it is not as optimal as the nix counterpart. IMO, that feature will not be supported in Windows because of how it depends on how Linux inherently works (sockets as files). Feel free to close this issue. Thank you so much for the effort put into this 🙏 |
Will do, once we've checked with @d3vyce there isn't a "quick win" for the quote issue.
Strictly speaking, SSHubl will (with #25) be compatible with Windows. It won't be with Win32-OpenSSH though 🤡 (I've noticed your comment on PowerShell/Win32-OpenSSH#405, and we'll also follow this thread, if a workaround that we could implement here at a little cost is proposed)
Let's keep it open for the time being, to clearly mention there is an ongoing issue with SSHubl/OpenSSH/Windows integration.
Thanks for your message ! We thank you again for your time (and we hope, future trials 😉). |
Hello @kapitanluffy, a short message to tell you my latest push on #25 should fix the quoting issue that remained. We'll be merging this feature soon^TM, and still waiting for the missing feature in Win32-OpenSSH/looking for a workaround. Thanks again, bye 👋 Check lists to track ongoing issues :
|
I get this error. I checked
Lib/python38
and it haspexpect
The text was updated successfully, but these errors were encountered: