OpenSSH_9.3p1, OpenSSL 3.1.1 30 May 2023
debug1: Reading configuration data /c/Users/99192/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.5.235 [192.168.5.235] port 30001.
debug1: Connection established.
debug1: identity file /c/Users/99192/.ssh/id_rsa type -1
debug1: identity file /c/Users/99192/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/99192/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/99192/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_ed25519 type 3
debug1: identity file /c/Users/99192/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/99192/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_xmss type -1
debug1: identity file /c/Users/99192/.ssh/id_xmss-cert type -1
debug1: identity file /c/Users/99192/.ssh/id_dsa type -1
debug1: identity file /c/Users/99192/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.5.235:30001 as 'test'
debug1: load_hostkeys: fopen /c/Users/99192/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/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:hqhfESj5oWFkoqjXnnLjxSYqlDSapKkeNRyW5saL0IM
debug1: load_hostkeys: fopen /c/Users/99192/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '[192.168.5.235]:30001' is known and matches the ED25519 host key.
debug1: Found key in /c/Users/99192/.ssh/known_hosts:5
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: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /c/Users/99192/.ssh/id_ed25519 ED25519 SHA256:LKGgr4p5eDgiBWTvVNCo7zub/B8+Zlt3Xz6Epy921LI agent
debug1: Will attempt key: /c/Users/99192/.ssh/id_rsa
debug1: Will attempt key: /c/Users/99192/.ssh/id_ecdsa
debug1: Will attempt key: /c/Users/99192/.ssh/id_ecdsa_sk
debug1: Will attempt key: /c/Users/99192/.ssh/id_ed25519_sk
debug1: Will attempt key: /c/Users/99192/.ssh/id_xmss
debug1: Will attempt key: /c/Users/99192/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /c/Users/99192/.ssh/id_ed25519 ED25519 SHA256:LKGgr4p5eDgiBWTvVNCo7zub/B8+Zlt3Xz6Epy921LI agent
debug1: Authentications that can continue: publickey
debug1: Trying private key: /c/Users/99192/.ssh/id_rsa
debug1: Trying private key: /c/Users/99192/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/99192/.ssh/id_ecdsa_sk
debug1: Trying private key: /c/Users/99192/.ssh/id_ed25519_sk
debug1: Trying private key: /c/Users/99192/.ssh/id_xmss
debug1: Trying private key: /c/Users/99192/.ssh/id_dsa
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey).[/ol]复制代码
在群晖上装了gitlab,想试试ssh来push,结果提示Permission denied。然后上面是排查问题时候的输出。不知道为什么已经提示了 Host '[192.168.5.235]:30001' is known and matches the ED25519 host key. 但是最后还是Permission denied (publickey)