summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authorbluhm@openbsd.org <bluhm@openbsd.org>2017-05-30 18:58:37 +0000
committerDamien Miller <djm@mindrot.org>2017-05-31 10:51:09 +1000
commit1112b534a6a7a07190e497e6bf86b0d5c5fb02dc (patch)
treead8c53c5857fe2290828b378b8c4cb8aff27fefe /ssh_config.5
parenteb272ea4099fd6157846f15c129ac5727933aa69 (diff)
upstream commit
Add RemoteCommand option to specify a command in the ssh config file instead of giving it on the client's command line. This command will be executed on the remote host. The feature allows to automate tasks using ssh config. OK markus@ Upstream-ID: 5d982fc17adea373a9c68cae1021ce0a0904a5ee
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.512
1 files changed, 10 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index db37b92cd..2c9e20fec 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -33,8 +33,8 @@
33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: ssh_config.5,v 1.248 2017/05/07 23:12:57 djm Exp $ 36.\" $OpenBSD: ssh_config.5,v 1.249 2017/05/30 18:58:37 bluhm Exp $
37.Dd $Mdocdate: May 7 2017 $ 37.Dd $Mdocdate: May 30 2017 $
38.Dt SSH_CONFIG 5 38.Dt SSH_CONFIG 5
39.Os 39.Os
40.Sh NAME 40.Sh NAME
@@ -1287,6 +1287,14 @@ is
1287.Cm default none , 1287.Cm default none ,
1288which means that rekeying is performed after the cipher's default amount 1288which means that rekeying is performed after the cipher's default amount
1289of data has been sent or received and no time based rekeying is done. 1289of data has been sent or received and no time based rekeying is done.
1290.It Cm RemoteCommand
1291Specifies a command to execute on the remote machine after successfully
1292connecting to the server.
1293The command string extends to the end of the line, and is executed with
1294the user's shell.
1295The same escape character substitutions as for
1296.Cm LocalCommand
1297will be performed.
1290.It Cm RemoteForward 1298.It Cm RemoteForward
1291Specifies that a TCP port on the remote machine be forwarded over 1299Specifies that a TCP port on the remote machine be forwarded over
1292the secure channel to the specified host and port from the local machine. 1300the secure channel to the specified host and port from the local machine.