mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 18:15:25 +02:00
ssh: add -t in example description (#6604)
This commit is contained in:
parent
6b5364ce2f
commit
3656eb90e7
1 changed files with 5 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
> Secure Shell is a protocol used to securely log onto remote systems.
|
||||
> It can be used for logging or executing commands on a remote server.
|
||||
> More information: <https://man.openbsd.org/ssh>.
|
||||
|
||||
- Connect to a remote server:
|
||||
|
||||
|
@ -15,15 +16,15 @@
|
|||
|
||||
`ssh {{username}}@{{remote_host}} -p {{2222}}`
|
||||
|
||||
- Run a command on a remote server:
|
||||
- Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command:
|
||||
|
||||
`ssh {{remote_host}} {{command -with -flags}}`
|
||||
`ssh {{username}}@{{remote_host}} -t {{command}} {{command_arguments}}`
|
||||
|
||||
- SSH tunneling: Dynamic port forwarding (SOCKS proxy on localhost:1080):
|
||||
- SSH tunneling: Dynamic port forwarding (SOCKS proxy on `localhost:1080):
|
||||
|
||||
`ssh -D {{1080}} {{username}}@{{remote_host}}`
|
||||
|
||||
- SSH tunneling: Forward a specific port (localhost:9999 to example.org:80) along with disabling pseudo-[t]ty allocation and executio[n] of remote commands:
|
||||
- SSH tunneling: Forward a specific port (`localhost:9999` to `example.org:80`) along with disabling pseudo-[T]ty allocation and executio[N] of remote commands:
|
||||
|
||||
`ssh -L {{9999}}:{{example.org}}:{{80}} -N -T {{username}}@{{remote_host}}`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue