mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
ssh: add shorthand example (#16451)
* Update ssh.md * Update ssh.md * Update pages/common/ssh.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -12,9 +12,9 @@
|
||||
|
||||
`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}`
|
||||
|
||||
- Connect to a remote server using a specific [p]ort:
|
||||
- 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`):
|
||||
|
||||
`ssh {{username}}@{{remote_host}} -p {{2222}}`
|
||||
`ssh {{username}}@10.0.0.1 -p {{2222}}`
|
||||
|
||||
- Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user