mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 13:06:00 +02:00
ssh: add -J and -A flags (#2148)
This commit is contained in:
parent
60a0f9d1a5
commit
31b664ccd8
1 changed files with 8 additions and 4 deletions
|
@ -23,10 +23,14 @@
|
|||
|
||||
`ssh -D {{9999}} -C {{username}}@{{remote_host}}`
|
||||
|
||||
- SSH tunneling: Forward a specific port (localhost:9999 to slashdot.org:80):
|
||||
- SSH tunneling: Forward a specific port (localhost:9999 to slashdot.org:80) along with disabling pseudo-[t]ty allocation and executio[n] of remote commands:
|
||||
|
||||
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
||||
`ssh -L {{9999}}:{{slashdot.org}}:{{80}} -N -T {{username}}@{{remote_host}}`
|
||||
|
||||
- Enable the option to forward the authentication information to the remote machine (see `man ssh_config` for available options):
|
||||
- SSH jumping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):
|
||||
|
||||
`ssh -o "ForwardAgent=yes" {{username}}@{{remote_host}}`
|
||||
`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}`
|
||||
|
||||
- Agent forwarding: Forward the authentication information to the remote machine (see `man ssh_config` for available options):
|
||||
|
||||
`ssh -A {{username}}@{{remote_host}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue