You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
连接ssh时提示身份验证被拒绝 但是用其他工具都能正常连接
ssh服务器已配置正常的情况下
这是我用windows的cmd命令调试下正常的回显 能正常连接
C:\Users\MingFei>ssh -v [email protected]
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 192.168.234.99 [192.168.234.99] port 22.
debug1: Connection established.
debug1: identity file C:\Users\MingFei/.ssh/id_rsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_rsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_dsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_dsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519 type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519_sk type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_xmss type -1
debug1: identity file C:\Users\MingFei/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2
debug1: compat_banner: match: OpenSSH_9.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.234.99:22 as 'root'
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: compression: none
debug1: kex: client->server cipher: [email protected] MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:LjJPy2huBWe5tWNq+SfhVuVQeuGFf6E5xoKg4cOP1HY
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory
debug1: hostkeys_find_by_key_hostfile: hostkeys file C:\Users\MingFei/.ssh/known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file C:\Users\MingFei/.ssh/known_hosts2 does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file PROGRAMDATA\ssh/ssh_known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file PROGRAMDATA\ssh/ssh_known_hosts2 does not exist
The authenticity of host '192.168.234.99 (192.168.234.99)' can't be established.
ED25519 key fingerprint is SHA256:LjJPy2huBWe5tWNq+SfhVuVQeuGFf6E5xoKg4cOP1HY.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.234.99' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_rsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_dsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ecdsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ecdsa_sk
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ed25519
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ed25519_sk
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
debug1: kex_input_ext_info: [email protected] (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
连接ssh时提示身份验证被拒绝 但是用其他工具都能正常连接
ssh服务器已配置正常的情况下
这是我用windows的cmd命令调试下正常的回显 能正常连接
C:\Users\MingFei>ssh -v [email protected]
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 192.168.234.99 [192.168.234.99] port 22.
debug1: Connection established.
debug1: identity file C:\Users\MingFei/.ssh/id_rsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_rsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_dsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_dsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519 type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519_sk type -1
debug1: identity file C:\Users\MingFei/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\Users\MingFei/.ssh/id_xmss type -1
debug1: identity file C:\Users\MingFei/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.2
debug1: compat_banner: match: OpenSSH_9.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.234.99:22 as 'root'
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: compression: none
debug1: kex: client->server cipher: [email protected] MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:LjJPy2huBWe5tWNq+SfhVuVQeuGFf6E5xoKg4cOP1HY
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen C:\Users\MingFei/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen PROGRAMDATA\ssh/ssh_known_hosts2: No such file or directory
debug1: hostkeys_find_by_key_hostfile: hostkeys file C:\Users\MingFei/.ssh/known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file C:\Users\MingFei/.ssh/known_hosts2 does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file PROGRAMDATA\ssh/ssh_known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file PROGRAMDATA\ssh/ssh_known_hosts2 does not exist
The authenticity of host '192.168.234.99 (192.168.234.99)' can't be established.
ED25519 key fingerprint is SHA256:LjJPy2huBWe5tWNq+SfhVuVQeuGFf6E5xoKg4cOP1HY.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.234.99' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_rsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_dsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ecdsa
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ecdsa_sk
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ed25519
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_ed25519_sk
debug1: Will attempt key: C:\Users\MingFei/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-dss,ssh-rsa,rsa-sha2-256,rsa-sha2-512>
debug1: kex_input_ext_info: [email protected] (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
而WindTerm则提示身份验证被拒绝
使用其他工具开启调试模式依旧正常连接 这是其他工具在调试模式下的回显
Beta Was this translation helpful? Give feedback.
All reactions