add ssh on a non-standard port

This commit is contained in:
Matthieu Keller 2013-08-28 14:15:50 +02:00
parent 437f191bf7
commit 17a2d6871d
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
# To ssh via pem file (which normally needs 0600 permissions): # To ssh via pem file (which normally needs 0600 permissions):
ssh -i /path/to/file.pem user@example.com 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: # To execute a command on a remote server:
ssh -t user@example.com 'the-remote-command' ssh -t user@example.com 'the-remote-command'