我有以下设置:
计算机A有一个Wifi适配器(并且是一个机器人,所以它不需要真正的互联网接入)。它正在运行Ubuntu 14.04。B是我的笔记本电脑运行Ubuntu14.04也。
我所做的是建立一个本地的Wifi热点计算机B使用这指南。它有一个以太网电缆连接到它,这使它访问“外部”。它工作的很好,计算机A可以加入网络,我可以从计算机B和相反的方式点击计算机A。
然而,我不能从计算机B到计算机A,我总是得到以下错误。
ssh youbot@ComputerA.local
ssh: connect to host ComputerA.local port 22: Connection refused据我所知,我不需要在计算机A上安装openssh服务器,因为我只是在同一网络中尝试ssh。(是这样吗?)
如果我跑了
sudo iptables -L我得到了输出:计算机B:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 10.42.0.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 10.42.0.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination 计算机A:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination我在两台电脑上都禁用了ufw。既然我真的不是ssh专家,有人能告诉我我能做些什么来解决这个问题吗?
如果需要进一步的信息,我很乐意提供。
发布于 2016-06-13 13:46:44
好吧,显然我需要A计算机上的操作系统服务器,即使我在同一个网络中。我在别的地方读错了。
https://unix.stackexchange.com/questions/289452
复制相似问题