Skip to content

Connection to Windows port 22 refused / closed after updating openSSH 9.5.0.0p1 to 9.8.1.0p1 #2313

Open
@xhstengg

Description

@xhstengg

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

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

- Did not retrive this from the site

Version

OpenSSH_for_Windows_9.8p1 Win32-OpenSSH-GitHub, LibreSSL 3.9.2

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions