互联网 SSH 权限被拒绝(公钥,密码)

互联网 SSH 权限被拒绝(公钥,密码)

一段时间以来,我一直能够通过互联网 (DDNS) 通过 SSH 成功连接到我的 Ubiquiti 收音机(共 5 个),但几周前,使用完全相同的凭据却无法连接,只有其中一个仍允许我连接,其他四个都拒绝了我的权限。我已经更改了密码和端口号(所有用户名都相同),但还是没有成功。以下是运行正常的 -v 打印输出:

C:\Users\Familia>ssh -v -l ubnt somethingelse.ddns.net -p5678 -D8080
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to somethingelse.ddns.net [xxx.yyy.zzz.239] port 5678.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version dropbear
debug1: no match: dropbear
debug1: Authenticating to somethingelse.ddns.net:5678 as 'ubnt'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:MTm4u31b1jCCganvaF02np8Wsc+fX7DCGMieGnUH3s0
debug1: Host '[somethingelse.ddns.net]:5678' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\Familia/.ssh/known_hosts:8
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug1: Authentication succeeded (password).
Authenticated to somethingelse.ddns.net ([xxx.yyy.zzz.239]:5678).
debug1: Local connections to LOCALHOST:8080 forwarded to remote address socks:0
debug1: Local forwarding listening on ::1 port 8080.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 8080.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: console supports the ansi parsing
 ___  ___
|\  \|\  \      Welcome to airOS
\ \  \\\  \
 \ \  \\\  \    PRODUCT: PowerBeam 5AC 620
  \ \  \\\  \   MAC: 788SDGE567D7
   \ \_______\
    \|_______|  VERSION: XC.v8.6.2

XC#
XC#
XC#
XC#
XC# exit
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 0: free: port listener, nchannels 2
debug1: channel 1: free: port listener, nchannels 1
Connection to somethingelse.ddns.net closed.
Transferred: sent 2152, received 1736 bytes, in 2.1 seconds
Bytes per second: sent 1007.4, received 812.6
debug1: Exit status 0

而我不能:

C:\Users\Familia>ssh -v -l ubnt something.ddns.net -p1234 -D8080
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Connecting to something.ddns.net [xxx.yyy.zzz.239] port 1234.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\Familia/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version dropbear
debug1: no match: dropbear
debug1: Authenticating to something.ddns.net:1234 as 'ubnt'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:MTm4u31b1jCCganvaF02np8Wsc+fX7DCGMieGnUH3s0
debug1: Host '[something.ddns.net]:1234' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\Familia/.ssh/known_hosts:4
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\Familia/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey,password).

我想补充一点,我在 Windows 10 中使用命令提示符,并且我可以从 LAN 使用相同的凭据连接到所有设备,没有任何问题。有人能帮帮我吗?

相关内容