@SWolf2k9

OpenSSH(7.7&8.1) windows server 2019 standard edition — проблема с 22ым портом. Как решить?

Привет Всем.
Используем софт : OpenSSH(7.7 & 8.1), ОС Windows Server 2019 Standard [10.0.17763]
Проблема :
Время от времени (через случайные периоды) служба OpenSSH “подвисает” – перестает слушать порт 22, в одном случае telnet выдает просто черный экран - без строки с версией OpenSSH, в другом – telnet совсем не соединяется - ..Не удалось открыть подключение к этому узлу, на порт 22: Сбой подключения.
При этом в оснастке служб и приложений windows служба имеет статус “выполняется”.
Перезапуск службы на какое-то время решает проблему.
Ниже приведен конфиг OpenSSH и лог службы.
Буду признателен за ответы.
Спасибо.

Конфиг :

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\


Лог :

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 2021-04-03 10:21:55.175 debug3: mm_request_receive entering [preauth]
8928 2021-04-03 10:21:55.175 debug3: 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]
8928 2021-04-03 10: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]
8928 2021-04-03 10:21:55.534 debug3: mm_request_send entering: type 6 [preauth]
8928 2021-04-03 10: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)
8928 2021-04-03 10:21:55.565 debug3: mm_request_send entering: type 7
8928 2021-04-03 10:21:55.565 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]
8928 2021-04-03 10:21:55.565 debug1: SSH2_MSG_NEWKEYS sent [preauth]
8928 2021-04-03 10:21:55.565 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-04-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 2021-04-03 10:21:55.847 debug1: 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]
8928 2021-04-03 10:21:55.847 Disconnected from 192.168.XXX.XXX port 65050 [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 debug3: mm_request_receive entering
1504 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
5944 2021-04-03 11:34:24.151 debug1: do_cleanup
3824 2021-04-03 11:44:18.122 debug3: mm_request_receive entering
3824 2021-04-03 11:44:18.122 debug1: do_cleanup
  • Вопрос задан
  • 64 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы