1
0
Fork 0
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:
Managor 2025-05-11 07:57:21 +03:00 committed by GitHub
parent 04b29a3782
commit 412c08af15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: