Giter Site home page Giter Site logo

Comments (13)

crschnick avatar crschnick commented on May 24, 2024

This is probably related to #235

In short, Windows OpenSSH has always caused some problems. What you can try is running the command in the terminal with -T instead of -t to see whether it still works.

Most users that had to deal with Windows SSH problems used WSL as a gateway in xpipe when creating SSH connections, that works fine. So it's definitely isolated to Windows.

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

But since this is getting quite frequent now, do you have anything enabled like special firewall settings? The problem with the Windows SSH issues were that I was never able to reproduce them.

from xpipe.

neatchee avatar neatchee commented on May 24, 2024

Yes, I run MalwareBytes' "Windows Firewall Control" for strict inbound/outbound blocking with prompting for unrecognized connection attempts. However, I do not observe any meaningful/relevant firewall log entries at the time of the failure on the host or client machines.

I have a background in software QA and would love to assist you in debugging this issue :)
Please feel free to make any requests from me that would help and I'll gladly do what I can. Love your software, use it daily, and would very much like to do what I can to contribute.

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

Would it be possible to just temporarily disable some/these rules to check whether they are interfering with the connection?

from xpipe.

neatchee avatar neatchee commented on May 24, 2024

Completely disabled the firewall on both machines, no change :(

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

Do you have WSL set up?

from xpipe.

neatchee avatar neatchee commented on May 24, 2024

Yup. I can work around it with WSL if necessary, but was hoping to get a direct connection to Windows pwsh working as I do run a fair number of powershell scripts.

fwiw I can confirm that:

  1. -T option reproduces the issue without xpipe, so this is probably an upstream bug that I can pursue
  2. The default shell isn't the issue; setting the default shell in windows to CMD produces the same error

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

The thing is that the -T is required for XPipe to interact with the system. You can enable the disabled system interaction option for a SSH connection in XPipe, but you won't have access to any advanced features other than launching the connection that way.

You could install pwsh in your WSL, that is also supported there.

You could install msys2/mingw/git for windows, that one has a straight port of the ssh executable as well that you can add to the PATH.

from xpipe.

neatchee avatar neatchee commented on May 24, 2024

Ohoho, possibly relevant: microsoft/vscode-remote-release#6521
Looks like this is similar to an issue that VS Code has, and is identified as a known issue with certain versions of OpenSSH server on Windows

Since you aren't able to reproduce the issue, can you tell me what version of OpenSSH you have installed on your Windows device (if you have one, of course)?

It looks like the version installed via Windows' "features" is 8.6. I'm going to try installing a more recent version via winget and see if that resolves the issue....

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

I tested with multiple versions, they all work for me on multiple devices. It seems to be a more system specific issue.

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

If you really want to spend time with this, the only thing that xpipe can do is pass some specific SSH options with -oKey=Value. If you find an option that fixes this, then it can be implemented.

from xpipe.

neatchee avatar neatchee commented on May 24, 2024

Upgrading to the latest version (9.5 beta) of OpenSSH (plus the obligatory system reboot) works.

Guidance for future users: On the host machine, run the following from a Powershell prompt...
winget install Microsoft.OpenSSH.Beta --source winget
...then reboot your host machine. Note that if you have existing inbound firewall rules, you will need to create new ones as the path for this package will change from C:\Windows\System32\OpenSSH\sshd.exe to C:\Program Files\OpenSSH\sshd.exe

from xpipe.

crschnick avatar crschnick commented on May 24, 2024

That is good to know. I tested with 8.1p1 and 9.5 back then and they both worked

from xpipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.