Linux command
mosh 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Connect to remote host
mosh [user@host]
Connect on specific port
mosh --ssh="ssh -p [2222]" [user@host]
Connect with specific server
mosh --server=[/usr/bin/mosh-server] [user@host]
Predict typing locally
mosh --predict=always [user@host]
Disable prediction
mosh --predict=never [user@host]
Use specific locale
mosh --client="LANG=en_US.UTF-8 mosh-client" [user@host]
说明
mosh (Mobile Shell) is a remote terminal application. It handles intermittent connectivity. The tool uses UDP for connection. Provides local echo and roaming. More resilient than SSH alone.
参数
- --ssh _CMD_
- SSH command to use.
- --server _PATH_
- Path to mosh-server.
- --predict _MODE_
- Prediction mode (always, adaptive, never).
- --port _PORT_
- Use specific UDP port.
- --help
- Display help information.
FAQ
What is the mosh command used for?
mosh (Mobile Shell) is a remote terminal application. It handles intermittent connectivity. The tool uses UDP for connection. Provides local echo and roaming. More resilient than SSH alone.
How do I run a basic mosh example?
Run `mosh [user@host]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --ssh _CMD_ do in mosh?
SSH command to use.