运行如下
# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_9.3, OpenSSL 1.1.1v 1 Aug 2023
debug1: private host key #0: ssh-rsa SHA256:D+VxozdaS+RArWwacYoCeQYn4LzKDiNPIvuI7beLrfk
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:JiuahzxIGlvp6Zojs4YAhyzbbjyBiIW+0aAN/qBTdIQ
debug1: private host key #2: ssh-ed25519 SHA256:XAsUECdoQW+VDR7/Xm/KaiBMDHKYTSrXDsnyjj0AymM
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
socket: Address family not supported by protocol
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
debug1: sshd version OpenSSH_9.3, OpenSSL 1.1.1v 1 Aug 2023
debug1: private host key #0: ssh-rsa SHA256:D+VxozdaS+RArWwacYoCeQYn4LzKDiNPIvuI7beLrfk
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:JiuahzxIGlvp6Zojs4YAhyzbbjyBiIW+0aAN/qBTdIQ
debug1: private host key #2: ssh-ed25519 SHA256:XAsUECdoQW+VDR7/Xm/KaiBMDHKYTSrXDsnyjj0AymM
debug1: inetd sockets after dupping: 3, 3
Connection from 10.0.1.56 port 6497 on 10.0.1.89 port 22 rdomain ""
debug1: Local version string SSH-2.0-OpenSSH_9.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_9.5
debug1: compat_banner: match: OpenSSH_for_Windows_9.5 pat OpenSSH* compat 0x04000000
debug1: permanently_set_uid: 101/102 [preauth]
debug1: list_hostkey_types: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
debug1: kex: algorithm: curve25519-sha256 [preauth]
debug1: kex: host key algorithm: ssh-ed25519 [preauth]
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth]
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth]
debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
debug1: SSH2_MSG_KEX_ECDH_INIT received [preauth]
debug1: rekey out after 134217728 blocks [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 192
离线