mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 14:55:56 +02: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:
parent
04b29a3782
commit
412c08af15
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue