sshfs 通过 mosh 隧道

Wak*_*nka 5 ssh ssh-tunneling sshfs mosh

我正在使用sshfsssh 隧道。这样做的原因是因为我无法直接访问要挂载文件系统的机器。

此命令建立我的隧道:

ssh -o TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 2222:192.168.1.55:22 root@beast -Nf
Run Code Online (Sandbox Code Playgroud)

而这个挂载了我的远程文件系统

sudo sshfs -o idmap=user,allow_other,reconnect,TCPKeepAlive=no,ServerAliveInterval=15,ServerAliveCountMax=3 waktana@localhost:/home/wakatana /ubuntu -p 2222
Run Code Online (Sandbox Code Playgroud)

问题是我使用了不可靠的链接,并且这个连接经常挂起(我无法访问 /ubuntu,从 /ubuntu 打开文件的文本编辑器冻结等),尽管我已经尝试过这些选项。

我读过关于mosh 的文章,我想给它一个机会,但我不知道如何使用mosh?

Wak*_*nka 6

还不可能。不过,有一个对 oob 数据的拉取请求似乎对某些人有用mosh/pull/583

所有学分都归于tribut#mosh频道命名的人freenode