前两天搭建了 shipyard,试着跑了一个 ubuntu16.04 将 22 端口映射为主机的 10022 端口 然后进入 ubuntu16.04 安装了 openssh,使用 ssh -l root 127.0.0.1 可以登陆,但是在外部用 ssh -l root 172.10.1.240:10022 就报错,这是为什么。 _ssh: Could not resolve hostname 172.10.1.240:10022: Name or service not known