ssh: add -J and -A flags (#2148)
This commit is contained in:

committed by
Agniva De Sarker

parent
60a0f9d1a5
commit
31b664ccd8
@@ -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}}`
|
||||
|
Reference in New Issue
Block a user