bigbox
我在和之间设置了反向 SSH 隧道,这样我就可以通过作为中间人从任何地方(位于防火墙后面)jump
登录。这工作得很好:我只是从我的笔记本电脑上,很快,我就进去了。bigbox
jump
ssh bigbox
现在,我想用莫什以减少延迟,但我不确定如何让它发挥作用。我之前对 Mosh 没有任何经验。我基本上想使用 SSH 使用我的配置设置初始连接,然后将其留给 Mosh。
不出所料,既没有做mosh bigbox
也mosh --ssh="ssh bigbox" localhost
没有工作:
$ mosh bigbox
/opt/homebrew/bin/mosh: Could not connect to localhost, last tried ::1: Connection refused
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
/opt/homebrew/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
这是我的配置:
〜/ .ssh /配置
Host jump
HostName jump.somedomain.com
User jumpuser
# https://unix.stackexchange.com/questions/693885/hardening-reverse-ssh-tunnel-via-jump-host/693886#693886
Host bigbox
ProxyJump jump
User my_user
# Using a reversed SSH tunnel
HostName localhost
Port 20001