diff --git a/pages/common/git-config.md b/pages/common/git-config.md index 513606a25c..326178e0f6 100644 --- a/pages/common/git-config.md +++ b/pages/common/git-config.md @@ -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): diff --git a/pages/common/ssh.md b/pages/common/ssh.md index b7b8942a6e..7b7cb07b36 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -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: