S
S
SWolf2k92021-04-05 14:33:27
OpenSSH
SWolf2k9, 2021-04-05 14:33:27

OpenSSH(7.7&8.1) windows server 2019 standard edition - problem with port 22. How to decide?

Hello to all.
We use software: OpenSSH(7.7 & 8.1), OS Windows Server 2019 Standard [10.0.17763]
Problem:
From time to time (through random periods) the OpenSSH service “freezes” - stops listening to port 22, in one case telnet just gives a black screen - without a line with the OpenSSH version, in another - telnet does not connect at all - ..Failed to open a connection to this host, on port 22: Connection failed.
At the same time, in the windows services and applications snap-in, the service has the status “running”.
Restarting the service for a while solves the problem.
Below is the OpenSSH config and service log.
I will be grateful for answers.
Thank you.

Config :

SyslogFacility LOCAL0
 LogLevel DEBUG3
 PermitRootLogin prohibit-password
 StrictModes yes
 PubkeyAuthentication no
 AuthorizedKeysFile  .ssh/authorized_keys
 PasswordAuthentication yes
 AllowTcpForwarding no
 Subsystem   sftp    sftp-server.exe 

Match User Upload01
    ChrootDirectory D:\SFTP\Upload01
  
Match User Upload02
    ChrootDirectory D:\SFTP\Upload02
  
Match User Upload03
    ChrootDirectory D:\SFTP\Upload03
   ……………………………………………
Match User Upload087
    ChrootDirectory D:\SFTP\Upload087
  
Match User Upload088
    ChrootDirectory D:\SFTP\Upload088
  
Match all
    ChrootDirectory D:\sftp_dump\


Log :

8928 2021-04-03 10:21:55.128 debug3: dh_new_group_fallback: requested max size 4096
8928 2021-04-03 10:21:55.128 debug3: using 4k bit group 16
8928 2021-04-03 10:21:55.144 debug3: mm_request_send entering: type 1
8928 2021-04-03 10:21:55.159 debug2: monitor_read: 0 used once, disabling now
8928 2021-04-03 10:21:55.159 debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI [preauth]
8928 2021-04-03 10 : 21:55.175 debug3: mm_request_receive_expect entering: type 1 [preauth]
8928
: mm_choose_dh: remaining 0 [preauth]
8928 2021-04-03 10:21:55.175 debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent [preauth]
8928 2021-04-03 10:21:55.175 debug3: send packet: type 31 [preauth] 8928 2021-04-03 10
:21:55.222 debug2: bits set: 2049/4096 [preauth]
:21:55.222 debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT [preauth]
8928 2021-04-03 10:21:55.487 debug3: receive packet: type 32 [preauth]
8928 2021-04-03 10:21:55.487 debug2: bits set: 2038/ 4096 [preauth] 8928 2021-04-03 10 :21: 55.534
debug3: mm_sshkey_sign entering [preauth] :21:55.534 debug3: mm_request_receive entering 8928 2021-04-03 10:21:55.534 debug3: monitor_read: checking request 6 8928 2021-04-03 10:21:55.534 debug3: mm_answer_sign
8928 2021-04-03 10:21:55.565
debug3 : mm_answer_sign: KEX signature 0000020140A5E640(276)
debug2: monitor_read: 6 used once, disabling now
8928 2021-04-03 10:21:55.565 debug3: mm_sshkey_sign: waiting for MONITOR_ANS_SIGN [preauth]
8928 2021-04-03 10:21:55.565 debug3: mm_request_receive_expect entering: type 7 [ preauth]
8928 2021-04-03 10:21:55.565 debug3: mm_request_receive entering [preauth]
8928 2021-04-03 10:21:55.565 debug3: send packet: type 33 [preauth]
8928 2021-04-03 10:21 :55.565 debug3: send packet: type 21 [preauth]
8928 2021-04-03 10:21:55.565 debug2: set_newkeys: mode 1 [preauth]
8928 2021-04-03 10:21:
55.565 debug1: rekey out after 4294967296 blocks [preauth]
debug1: expecting SSH2_MSG_NEWKEYS [preauth]
8928 2021-04-03 10:21:55.847 debug3: receive packet: type 21 [preauth]
8928 2021-04-03 10:21:55.847 debug1: SSH2_MSG_NEWKEYS received [preauth]
8928 2021 -03 10:21:55.847 debug2: set_newkeys: mode 0 [preauth]
8928 2021-04-03 10:21:55.847 debug1: rekey in after 4294967296 blocks [preauth]
8928 KEX done [preauth]
8928 2021-04-03 10:21:55.847 debug3: receive packet: type 1 [preauth]
8928 2021-04-03 10:21: 55.847 Received disconnect from 192.168.XXX.XXX port 65050:11: Session closed [preauth] preauth]
8928 2021-04-03 10:21:55.847 debug1: do_cleanup [preauth]
8928 2021-04-03 10:21:55.847 debug1: monitor_read_log: child log fd closed
8928 2021-04-03 10:21:55.847 debug3 : mm_request_receive entering
8928 2021-04-03 10:21:55.847 debug1: do_cleanup
8928 2021-04-03 10:21:55.847 debug1: Killing privsep child 8408 1504
2021-04-03 10:34:13.000 debugre_quest_3 entering
2021-04-03 10:34:13.000 debug1: do_cleanup
9076 2021-04-03 10:44:07.033 debug3: mm_request_receive entering
9076 2021-04-03 10:44:07.033 debug1: do_cleanup
5944 2021-04-03 11:34:24.151 debug3: mm_request_receive
entering
:44:18.122 debug3: mm_request_receive entering
3824 2021-04-03 11:44:18.122 debug1: do_cleanup

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question