试过指定cipher算法,也是失败的
B
bitwool
@bitwool
-
指定算法登录失败 -
指定算法登录失败ssh验证方式是密码
高级配置如下
登录报错
Socket connected Remote ident: 'SSH-2.0-SSHD-FORTD-2.0.1' Outbound: Sending KEXINIT Inbound: Handshake in progress Handshake: (local) KEX method: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,ext-info-c,kex-strict-c-v00@openssh.com Handshake: (remote) KEX method: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 Handshake: KEX algorithm: diffie-hellman-group14-sha1 Handshake: (local) Host key format: ssh-dss Handshake: (remote) Host key format: ssh-dss Handshake: Host key format: ssh-dss Handshake: (local) C->S cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr Handshake: (remote) C->S cipher: aes128-ctr Handshake: C->S Cipher: aes128-ctr Handshake: (local) S->C cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr Handshake: (remote) S->C cipher: aes128-ctr Handshake: S->C cipher: aes128-ctr Handshake: (local) C->S MAC: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 Handshake: (remote) C->S MAC: hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1-96 Handshake: C->S MAC: hmac-sha1 Handshake: (local) S->C MAC: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 Handshake: (remote) S->C MAC: hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1-96 Handshake: S->C MAC: hmac-sha1 Handshake: (local) C->S compression: none,zlib@openssh.com,zlib Handshake: (remote) C->S compression: none Handshake: C->S compression: none Handshake: (local) S->C compression: none,zlib@openssh.com,zlib Handshake: (remote) S->C compression: none Handshake: S->C compression: none Outbound: Sending KEXDH_INIT Received DH Reply Host accepted by default (no verification) Host accepted (verified) Outbound: Sending NEWKEYS Inbound: NEWKEYS Verifying signature ... Signature verification failed: Error: error:06000080:public key routines:OPENSSL_internal:UNSUPPORTED_ALGORITHM at verifyOneShot (node:internal/crypto/sig:282:39) at OpenSSH_Public.verify (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/keyParser.js:408:18) at DHExchange.finish (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/kex.js:698:40) at DHExchange.parse (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/kex.js:1267:23) at Protocol.onKEXPayload (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/kex.js:1826:20) at NullDecipher.decrypt (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/crypto.js:612:26) at Protocol.parsePacket [as _parse] (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/Protocol.js:2028:25) at Protocol.parse (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/protocol/Protocol.js:313:16) at Socket.<anonymous> (/Applications/XTerminal.app/Contents/Resources/app.asar/node_modules/ssh2/lib/client.js:775:21) at Socket.emit (node:events:519:28) at addChunk (node:internal/streams/readable:559:12) at readableAddChunkPushByteMode (node:internal/streams/readable:510:3) at Readable.push (node:internal/streams/readable:390:5) at TCP.onStreamRead (node:internal/stream_base_commons:191:23) at TCP.callbackTrampoline (node:internal/async_hooks:130:17) Outbound: Sending DISCONNECT (3) Handshake failed: signature verification failed
版本:2.6.3
使用ssh命令指定算法可以登录成功ssh -v username@host -pport -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=ssh-dss
麻烦大佬们看下什么问题