gpt4 book ai didi

linux - 连接树莓派时ssh错误文件号

转载 作者:太空宇宙 更新时间:2023-11-04 03:42:31 26 4
gpt4 key购买 nike

我刚刚在我的树莓派上安装了 Ubuntu(Wheezy) 的新副本,现在我尝试通过 git bash 中的 SSH 从我的 Windows 桌面 SSH 到它。当我尝试时它告诉我:

>ssh 192.168.0.105
connect to host 192.168.0.105 port 22: Bad file number

当我尝试端口 443 时:

>ssh -v 192.168.0.105 -p 443
OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014
debug1: Connecting to 192.168.0.105 [192.168.0.105] port 443.
debug1: connect to address 192.168.0.105 port 443: Attempt to connect timed out without establishing a connection
ssh: connect to host 192.168.0.105 port 443: Bad file number

我发现了一些关于如何在人们连接到 github 等时出现问题时解决此问题的帖子,但没有针对本地网络的解决方案。我检查了路由器,没有找到任何阻塞端口 22 的东西。在测试时,我还禁用了 Windows 电脑上的防火墙。如果有人可以解释为什么我遇到这个问题,以及如何解决它,我将不胜感激。

最佳答案

我发现我的 pi 连接到了访客网络而不是主网络,并且访客网络显然阻止了所有 ssh 端口。

关于linux - 连接树莓派时ssh错误文件号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29173015/

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