mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
ssh, git-config: align arguments (#22738)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
- List local, global, or system configuration entries and show their file location:
|
||||
|
||||
`git config {{[-l|--list]}} --{{local|global|system}} --show-origin`
|
||||
`git config --{{local|global|system}} {{[-l|--list]}} --show-origin`
|
||||
|
||||
- Set the global value of a given configuration entry (in this case an alias):
|
||||
|
||||
|
||||
+4
-4
@@ -10,7 +10,7 @@
|
||||
|
||||
- Connect to a remote server with a specific [i]dentity (private key):
|
||||
|
||||
`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}`
|
||||
`ssh {{username}}@{{remote_host}} -i {{path/to/key_file}}`
|
||||
|
||||
- Connect to a remote server with IP `10.0.0.1` and using a specific [p]ort (Note: `10.0.0.1` can be shortened to `10.1`):
|
||||
|
||||
@@ -22,15 +22,15 @@
|
||||
|
||||
- SSH tunneling: [D]ynamic port forwarding (SOCKS proxy on `localhost:1080`):
|
||||
|
||||
`ssh -D {{1080}} {{username}}@{{remote_host}}`
|
||||
`ssh {{username}}@{{remote_host}} -D {{1080}}`
|
||||
|
||||
- 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}}`
|
||||
`ssh {{username}}@{{remote_host}} -L {{9999}}:{{example.org}}:{{80}} -N -T`
|
||||
|
||||
- SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):
|
||||
|
||||
`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}`
|
||||
`ssh {{username}}@{{remote_host}} -J {{username}}@{{jump_host}}`
|
||||
|
||||
- Close a hanged session:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user