mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Merge pull request #46 from maggick/patch-3
add ssh on a non-standard port
This commit is contained in:
commit
05ef9989e6
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
# To ssh via pem file (which normally needs 0600 permissions):
|
||||
ssh -i /path/to/file.pem user@example.com
|
||||
|
||||
# To connect on an non-standard port:
|
||||
ssh -p 2222 user@example.com
|
||||
|
||||
# To execute a command on a remote server:
|
||||
ssh -t user@example.com 'the-remote-command'
|
||||
|
||||
|
|
Loading…
Reference in a new issue