小编xj9*_*xj9的帖子

MOSH 进入堡垒服务器,SSH 进入内部主机

我已ssh配置为通过堡垒主机自动转发:

Host bastion_host
    HostName bastion.example.com

Host internal_host
    ProxyCommand ssh -q bastion_host nc -q0 internal_host.dmz 22
    User internal_user
Run Code Online (Sandbox Code Playgroud)

这有效。但是,如果我尝试通过mosh进行连接,则会出现以下错误:

$ mosh internal_host
/usr/local/bin/mosh: Could not resolve hostname internal_host
ssh_exchange_identification: Connection closed by remote host
/usr/local/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
Run Code Online (Sandbox Code Playgroud)

我正在寻找的是mosh我的系统到堡垒主机的连接以及ssh从堡垒主机到内部主机的正常隧道。可能的?

ssh port-forwarding

9
推荐指数
1
解决办法
5134
查看次数

标签 统计

port-forwarding ×1

ssh ×1