gpt4 book ai didi

linux - TAILS 上的 OpenSSH 错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:12:42 30 4
gpt4 key购买 nike

每个人都是我第一次发帖,想知道我做错了什么:) 请帮助我。所以,我使用 tails,决定使用 OpenSSH 连接到远程服务器(digitalocean)。生成的公钥和私钥,放置到/root/.ssh/。但是,当我尝试连接时,ssh -v root@11.11.11.11 这是调试后得到的结果。

root@amnesia:/home/amnesia# ssh root@11.11.11.11
FATAL: Failed to determine SOCKS server.
ssh_exchange_identification: Connection closed by remote host
root@amnesia:/home/amnesia# ssh -v root@11.11.11.11
OpenSSH_6.7p1 Debian-5+deb8u1, OpenSSL 1.0.1k 8 Jan 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 4: Applying options for *
debug1: Executing proxy command: exec /usr/local/lib/connect-socks 11.11.11.11 22
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: permanently_drop_suid: 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u1
FATAL: Failed to determine SOCKS server.
ssh_exchange_identification: Connection closed by remote host

也许我只是忘了添加一些简单的步骤,这已经让我困扰了 3 天..^^ :D

最佳答案

我认为问题出在这里;

FATAL: Failed to determine SOCKS server.
ssh_exchange_identification: Connection closed by remote host

似乎没有服务器监听 IP 地址 11.11.11.11。

这是您已知的有 ssh 服务器监听的域地址吗?如果答案是肯定的,我的建议是不要将 root 用户用作可以通过 ssh 登录的用户,因为这存在安全风险。我相信在 OpenSSH 中默认情况下不允许这样做。

关于linux - TAILS 上的 OpenSSH 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36668991/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com