我在工作中连接树莓派时遇到问题。我的锉刀在家,ssh 监听端口 22,但我只能使用端口 443 从工作网络出去。因此,我的家庭互联网盒子将 443 转发到 22。这已经工作了几个月。
但现在,我无法再使用 ssh (用户和 IP 已更改):
# ssh -vvv -p 443 [email protected]
OpenSSH_7.1p2, OpenSSL 1.0.1g 7 Apr 2014
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.0.0.1 [10.0.0.1] port 443.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/me/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Raspbian-10+deb10u1
debug1: match: OpenSSH_7.9p1 Raspbian-10+deb10u1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 10.0.0.1:443 as 'myuser'
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 10.0.0.1
当我在家(本地网络)时,我可以毫无问题地进行 ssh。
我在周日更新(并重新启动)了我的锉刀,但周一早上 ssh 在我的工作地点工作了。周一中午,我们对网络进行了小幅修改,但没有任何关于端口的修改。
任何想法 ?
答案1
顺便说一句,我发现了一个 ssh Web 控制台(https://www.serfish.com/console/)并经过测试:我的锉刀上一切正常,所以问题出在我的工作网络上。看起来我们的新防火墙配置 (sonicwall NS2650) 在我的 ssh 上有问题:(
这个问题可以关闭,我会查看防火墙设置和帮助:)