-
Notifications
You must be signed in to change notification settings - Fork 767
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
Connection to Windows port 22 refused / closed after updating openSSH 9.5.0.0p1 to 9.8.1.0p1 #2313
Comments
I think this may be related to #2297 As mentioned in #2297 (comment), does using only ECDSA and ED25519 host keys change the behavior at all? |
Hey, thanks for your response. Changing the ssh_config lines as suggested above did not work. I have reverted the lines back to the original.
C:\Users\Administrator>ssh -vvv x.x.x.x |
Prerequisites
Steps to reproduce
Im using OpenSSH on Windows server 2022 to receive files via SFTP from remote servers. On the remote servers, I configured the IP address of the Windows server, username and password, and folder path in Windows that will receive the files. WIndows firewall has a rule to allow all incoming traffic on port 22. Windows server has joined domain.
It used to work fine, but after updating the openSSH version from 9.5 to 9.8, it stopped working. The remote servers give the error "peer reset the connection". Using WinSCP to access the Windows server also gives the error "connection abort". These are the logs produced in %programdata%\ssh\logs\sshd-session:
debug1: network sockets: 4, 4
debug3: server_process_channel_timeouts: setting 0 timeouts
debug3: channel_clear_timeouts: clearing
Connection from port 8162 on port 22
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.8 Win32-OpenSSH-Github
debug1: Remote protocol version 2.0, remote software version Ruby/Net::SSH_7.0.1 x86_64-freebsd13.3
debug1: compt_banner: no match: Ruby/Net::SSH_7.0.1 x86_64-freebsd13.3
debug2: fd 4 setting O_NONBLOCK
debug3: spawning "c:\users\administrator\desktop\openssh-win64-9.8/sshd-session.exe" -y as u
debug2: Network child is on pid 6056
debug3: send_config_state: entering fd = 6 config len 2211
debug3: ssh_msg_send: type 0 len 4474
debug3: write-ERROR from cb:109, io:00000176C04F7AA0
error: ssh_msg_send: write: Destination address required
error: send_config_state: ssh_msg_send failed
debug3: send_config_state: done
debug3: ssh_msg_send: type 0 len 110
debug3: write ERROR from cb(2):232, io:00000176C04F7AA0
error: ssh_msg_send: write: Unknown error
fatal: send_idexch_state: ssh_msg_send failed
debug1: do_cleanup
debug1: killing privsep child 6056
Expected behavior
Adding Windows server as SFTP server succeeds. Files sent from remote server will appear in folder on Windows Server.
Actual behavior
"Peer reset connection" on remote server. "Connection abort" on WinSCP. Files not sent to folder in Windows.
Error details
Did not retrieve this from the site
Environment data
Version
OpenSSH_for_Windows_9.8p1 Win32-OpenSSH-GitHub, LibreSSL 3.9.2
Visuals
No response
The text was updated successfully, but these errors were encountered: