Support SSH aliases in Dosh client installs
This commit is contained in:
@@ -92,37 +92,36 @@ dosh-client
|
||||
Default UDP port: `50000`. This is intentionally inside the common forwarded range
|
||||
`50000-52000/udp`.
|
||||
|
||||
Put this repo on your Gitea server, then install on each Linux server you want to
|
||||
attach to:
|
||||
Install on each Linux server you want to attach to:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://gitea.example.com/you/dosh/raw/branch/main/install.sh \
|
||||
| DOSH_REPO=https://gitea.example.com/you/dosh.git DOSH_PORT=50000 sh -s -- server
|
||||
curl -fsSL https://git.palav.dev/Palav/dosh/raw/branch/main/install.sh \
|
||||
| DOSH_REPO=https://git.palav.dev/Palav/dosh.git DOSH_PORT=50000 sh -s -- server
|
||||
```
|
||||
|
||||
Install the client on macOS:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://gitea.example.com/you/dosh/raw/branch/main/install.sh \
|
||||
| DOSH_REPO=https://gitea.example.com/you/dosh.git DOSH_SERVER=user@host DOSH_PORT=50000 sh -s -- client
|
||||
curl -fsSL https://git.palav.dev/Palav/dosh/raw/branch/main/install.sh \
|
||||
| DOSH_REPO=https://git.palav.dev/Palav/dosh.git DOSH_SERVER=palav DOSH_HOST=git.palav.dev DOSH_PORT=50000 sh -s -- client
|
||||
```
|
||||
|
||||
Install the client on Windows PowerShell:
|
||||
|
||||
```powershell
|
||||
$env:DOSH_REPO="https://gitea.example.com/you/dosh.git"; $env:DOSH_SERVER="user@host"; $env:DOSH_PORT="50000"; irm https://gitea.example.com/you/dosh/raw/branch/main/install.ps1 | iex
|
||||
$env:DOSH_REPO="https://git.palav.dev/Palav/dosh.git"; $env:DOSH_SERVER="palav"; $env:DOSH_HOST="git.palav.dev"; $env:DOSH_PORT="50000"; irm https://git.palav.dev/Palav/dosh/raw/branch/main/install.ps1 | iex
|
||||
```
|
||||
|
||||
Attach:
|
||||
|
||||
```bash
|
||||
dosh-client user@host
|
||||
dosh palav
|
||||
```
|
||||
|
||||
Use named sessions:
|
||||
|
||||
```bash
|
||||
dosh-client --session work user@host
|
||||
dosh --session work palav
|
||||
```
|
||||
|
||||
Press `Ctrl-]` to detach the current client while leaving the server session alive.
|
||||
|
||||
Reference in New Issue
Block a user