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

Fail to connect / connection reset #1035

Closed
bgola opened this Issue Jan 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@bgola
Copy link

bgola commented Jan 24, 2018

"OpenSSH for Windows" version
v1.0.0.0-Beta

Server OperatingSystem
Windows Server 2016 Standard

Client OperatingSystem
ArchLinux up-to-date

What is failing

Trying to connect (ssh user@host -p 2233) fails with:

$ ssh -vvv test@172.20.1.100 -p 2233
OpenSSH_7.6p1, OpenSSL 1.1.0g  2 Nov 2017
debug1: Reading configuration data /home/bgola/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "172.20.1.100" port 2233
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 172.20.1.100 [172.20.1.100] port 2233.
debug1: Connection established.
debug1: identity file /home/bgola/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_rsa-cert type -1
debug1: identity file /home/bgola/.ssh/id_dsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/bgola/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6
debug1: match: OpenSSH_7.6 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 172.20.1.100:2233 as 'chevah'
debug3: put_host_port: [172.20.1.100]:2233
debug3: hostkeys_foreach: reading file "/home/bgola/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 172.20.1.100 port 2233

The sshd logs show:

>sshd.exe -ddd
debug2: load_server_config: filename __PROGRAMDATA__\\ssh/sshd_config
debug2: load_server_config: done config len = 179
debug2: parse_server_config: config __PROGRAMDATA__\\ssh/sshd_config len 179
debug3: __PROGRAMDATA__\\ssh/sshd_config:9 setting Port 2233
debug3: __PROGRAMDATA__\\ssh/sshd_config:20 setting RekeyLimit 1K none
debug3: __PROGRAMDATA__\\ssh/sshd_config:38 setting AuthorizedKeysFile .ssh/authorized_keys
debug3: __PROGRAMDATA__\\ssh/sshd_config:76 setting Subsystem sftp      sftp-server.exe
debug1: sshd version OpenSSH_7.6, LibreSSL 2.5.3
debug1: private host key #0: ssh-rsa SHA256:483Ns8/Ovjg5JbTjOufkx0OiG7K0db70xLRRFJtG8Oc
debug1: private host key #1: ssh-dss SHA256:FN9Aa12wQH/hD9YJgsyJlTfG9vfr2Z3HeNhToPonOTg
debug1: private host key #2: ecdsa-sha2-nistp256 SHA256:rMM3tp7SweIu3c92vQKWhO0TvqxjqnBWnwmPTqbLKVQ
debug1: private host key #3: ssh-ed25519 SHA256:9srNl/RdQHNv18jXC6tLvrJemLp3rcs6ETUVpZzudrI
debug1: rexec_argv[0]='sshd.exe'
debug1: rexec_argv[1]='-ddd'
debug2: fd 3 setting O_NONBLOCK
debug3: sock_set_v6only: set socket 3 IPV6_V6ONLY
debug1: Bind to port 2233 on ::.
Server listening on :: port 2233.
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 2233 on 0.0.0.0.
Server listening on 0.0.0.0 port 2233.
debug3: fd 5 is not O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 8 config len 179
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
Connection from 172.20.2.245 port 48512 on 172.20.1.100 port 2233
debug1: Client protocol version 2.0; client software version OpenSSH_7.6
debug1: match: OpenSSH_7.6 pat OpenSSH* compat 0x04000000
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug2: fd 5 setting O_NONBLOCK
debug3: LsaLogonUser succeeded
debug3: spawning "C:\\Users\\test\\OpenSSH-Win64\\OpenSSH-Win64\\sshd.exe" "-ddd" "-y"
debug3: send_rexec_state: entering fd = 4 config len 179
debug3: ssh_msg_send: type 0
debug3: write ERROR from cb(2):232, io:000001D9D08EDBB0
ssh_msg_send: write
send_rexec_state: ssh_msg_send failed
debug1: do_cleanup

Let me know if I can provide more information.

Thanks

@bagajjal

This comment has been minimized.

Copy link
Collaborator

bagajjal commented Jan 24, 2018

This might be related to permission issue. please provide "read, execute" permission for "users" account to "C:\Users\test\OpenSSH-Win64\OpenSSH-Win64"

@bgola

This comment has been minimized.

Copy link
Author

bgola commented Jan 24, 2018

thanks, this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.