From 17a2d6871d0ccc0363a3fbfab6a985e260287db2 Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Wed, 28 Aug 2013 14:15:50 +0200 Subject: [PATCH] add ssh on a non-standard port --- cheatsheets/ssh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheatsheets/ssh b/cheatsheets/ssh index e2938d4..bcd8640 100644 --- a/cheatsheets/ssh +++ b/cheatsheets/ssh @@ -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'