在相同的wifi下,我可以使用SSH连接到另一台计算机
me@me:~$ ssh assistant@assistant.local
assistant@assistant.local's password:
Welcome to Ubuntu 18.10 (GNU/Linux 4.18.0-13-generic x86_64)
0 packages can be updated.
0 updates are security updates.
*** System restart required ***
Last login: Mon Jan 14 13:24:22 2019 from 192.168.31.117
如果切换到其他wifi,它将失败
@alpha:~$ ssh assistant@assistant.local
ssh: connect to host assistant.local port 22: No route to host
但是,第二种情况很有用,例如,我可以从家用计算机的终端访问办公室的计算机。
您能否提供实现它的任何提示?
您可能在不同的网络上,并且如错误所述,没有通往主机的路由。
—
RJ-