From 6d7b1dc79aee916c5a74274fcd49de33dd68cadc Mon Sep 17 00:00:00 2001 From: Romain Prieto Date: Tue, 18 Feb 2014 12:31:59 +1100 Subject: [PATCH] SSH: add example to run a command directly --- common/ssh.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/ssh.md b/common/ssh.md index 19c08159b9..880268e178 100644 --- a/common/ssh.md +++ b/common/ssh.md @@ -11,6 +11,10 @@ `ssh {{username}}@{{remote_host}} -P {{2222}}` +- run a command on a remote server + +`ssh {{remote_host}} "{{command -with -flags}}"` + - ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999) `ssh -D {{9999}} -C {{username}}@{{remote_host}}`