Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

34
tldr/mosh Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mosh
> Mobile Shell (`mosh`) is a robust and responsive replacement for SSH.
> `mosh` persists connections to remote servers while roaming between networks.
> More information: <https://mosh.org>.
- 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}}`