I am using
sshfs over ssh tunnel. The reason for this is because I do not have direct access to machine from which I want to mount file system.
This command establishes me tunnel:
ssh -o TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 2222:192.168.1.55:22 root@beast -Nf
And this one mounts me remote file system
sudo sshfs -o idmap=user,allow_other,reconnect,TCPKeepAlive=no,ServerAliveInterval=15,ServerAliveCountMax=3 waktana@localhost:/home/wakatana /ubuntu -p 2222
The problem is that I am using unreliable link and this connection is often hanging (I am not able to access /ubuntu, text editor which has opened files from /ubuntu freezes etc.) despite the options that I've tried.
I've read about mosh that I would like to give a chance, but I do not know how can I create tunnel using