1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00

ssh: add -J and -A flags (#2148)

This commit is contained in:
Bengt Brodersen 2018-06-21 07:21:47 +02:00 committed by Agniva De Sarker
parent 60a0f9d1a5
commit 31b664ccd8

View file

@ -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}}`