Skip to content
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

mosh: does not connnect / mosh-server does not initiate with OpenSSH-Win32 as the default ssh #3614

Open
1 task done
tigerinus opened this issue Mar 4, 2023 · 3 comments
Labels

Comments

@tigerinus
Copy link

tigerinus commented Mar 4, 2023

Moved mobile-shell/mosh#1259 to here since mosh isn't officially supported for MSYS2.

Description / Steps to reproduce the issue

  1. Follow https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse to add and run OpenSSH to Windows, or install OpenSSH-Win32 via winget:

    ~ ❯ winget install Microsoft.OpenSSH.Beta

    Make sure sshd is working:

    image

  2. Install mosh

    ~ ❯ pacman -S mosh
  3. Run

    image

Expected behavior

It should just work

Actual behavior

~ ❯ mosh localhost
CreateProcessW failed error:2
posix_spawnp: No such file or directory
/usr/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).

~ ❯ mosh-server.exe new
Error binding to any interface: setsockopt: Invalid argument
Network exception: setsockopt: Invalid argument

Verification

Windows Version

MSYS_NT-10.0-19045 powerberry 3.4.6.x86_64 2023-02-15 18:03 UTC x86_64 Msys

Are you willing to submit a PR?

If someone tells me how to fix this.

@tigerinus tigerinus added the bug label Mar 4, 2023
@tigerinus tigerinus changed the title mosh: does not connnect / mosh-server does not initiate mosh: does not connnect / mosh-server does not initiate with OpenSSH-Win32 as the default ssh Mar 4, 2023
@Biswa96
Copy link
Member

Biswa96 commented Mar 6, 2023

I can reproduce the mosh-server issue. I can not figure out the relation between mosh and ssh and not sure about the mosh localhost issue. But the following commands work

  • mosh-server.exe new -i 127.0.0.1
  • MOSH_KEY=foobar mosh-client.exe 127.0.0.1 60001

@tigerinus
Copy link
Author

Does it run mosh localhost successfully?

@Biswa96
Copy link
Member

Biswa96 commented Mar 7, 2023

Does it run mosh localhost successfully?

No. I get the following message

$ mosh localhost
/usr/bin/mosh: Could not connect to localhost, last tried ::1: Connection refused
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
/usr/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).

The /usr/bin/mosh is a perl script. I am not familiar with the perl language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants