0

我正在尝试通过 ssh 连接到我的 droplet,但远程主机关闭了连接

这是 ssh -v root@bbb.bbb.bbb.bbb 的输出:

┌──(progx㉿MohamedMarzouk)-[~]
└─$ ssh -v root@bbb.bbb.bbb.bbb
OpenSSH_8.4p1 Debian-6, OpenSSL 1.1.1l  24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to bbb.bbb.bbb.bbb [bbb.bbb.bbb.bbb] port 22.
debug1: Connection established.
debug1: identity file /home/progx/.ssh/id_rsa type -1
debug1: identity file /home/progx/.ssh/id_rsa-cert type -1
debug1: identity file /home/progx/.ssh/id_dsa type -1
debug1: identity file /home/progx/.ssh/id_dsa-cert type -1
debug1: identity file /home/progx/.ssh/id_ecdsa type -1
debug1: identity file /home/progx/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/progx/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/progx/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/progx/.ssh/id_ed25519 type -1
debug1: identity file /home/progx/.ssh/id_ed25519-cert type -1
debug1: identity file /home/progx/.ssh/id_ed25519_sk type -1
debug1: identity file /home/progx/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/progx/.ssh/id_xmss type -1
debug1: identity file /home/progx/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4p1 Debian-6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to bbb.bbb.bbb.bbb:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:yHYufQWY4gFWRG15trEtqoGNEtM61h5ZMb1i0awW8Fs
debug1: Host 'bbb.bbb.bbb.bbb' is known and matches the ECDSA host key.
debug1: Found key in /home/progx/.ssh/known_hosts:1
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: Will attempt key: /home/progx/.ssh/id_rsa
debug1: Will attempt key: /home/progx/.ssh/id_dsa
debug1: Will attempt key: /home/progx/.ssh/id_ecdsa
debug1: Will attempt key: /home/progx/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/progx/.ssh/id_ed25519
debug1: Will attempt key: /home/progx/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/progx/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/progx/.ssh/id_rsa
debug1: Trying private key: /home/progx/.ssh/id_dsa
debug1: Trying private key: /home/progx/.ssh/id_ecdsa
debug1: Trying private key: /home/progx/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/progx/.ssh/id_ed25519
debug1: Trying private key: /home/progx/.ssh/id_ed25519_sk
debug1: Trying private key: /home/progx/.ssh/id_xmss
debug1: Next authentication method: password
root@bbb.bbb.bbb.bbb's password:
debug1: Authentication succeeded (password).
Authenticated to bbb.bbb.bbb.bbb ([bbb.bbb.bbb.bbb]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: channel 0: free: client-session, nchannels 1
Connection to bbb.bbb.bbb.bbb closed by remote host.
Connection to bbb.bbb.bbb.bbb closed.
Transferred: sent 2316, received 2264 bytes, in 1.1 seconds
Bytes per second: sent 2103.1, received 2055.9
debug1: Exit status -1

我联系了 DigitalOcean 支持,他们告诉我 ssh 连接正在工作,我知道,问题是远程主机在输入我的密码后就关闭了连接!

4

0 回答 0