forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b1e4f2
commit db76604
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# mosh | ||
|
||
> Mobile Shell (`mosh`) is a robust and responsive replacement for SSH. | ||
> `mosh` persists connections to remote servers while roaming between networks. | ||
- Connect to a remote server: | ||
|
||
`mosh {{username}}@{{remote_host}}` | ||
|
||
- Connect to a remote server with a specific identity (private key): | ||
|
||
`mosh --ssh="ssh -i {{/path/to/key_file}}" {{username}}@{{remote_host}}` | ||
|
||
- Connect to a remote server using a specific port: | ||
|
||
`mosh --ssh="ssh -p {{2222}}" {{username}}@{{remote_host}}` | ||
|
||
- Run a command on a remote server: | ||
|
||
`mosh {{remote_host}} -- {{command -with -flags}}` | ||
|
||
- Select Mosh UDP port (useful when `{{remote_host}}` is behind a NAT): | ||
|
||
`mosh -p {{124}} {{username}}@{{remote_host}}` | ||
|
||
- Usage when `mosh-server` binary is outside standard path: | ||
|
||
`mosh --server={{/path/to/bin/}}mosh-server {{remote_host}}` |