diff options
author | Damien Miller <djm@mindrot.org> | 2011-09-22 13:38:52 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-09-22 13:38:52 +0200 |
commit | f6dff7cd2ff5eba5cd63e3a9c7bf6ccf183cb056 (patch) | |
tree | ca2f37e390f5f26598341a09435dabed25648d46 /ssh.c | |
parent | - djm@cvs.openbsd.org 2011/09/09 22:38:21 (diff) | |
download | openssh-f6dff7cd2ff5eba5cd63e3a9c7bf6ccf183cb056.tar.xz openssh-f6dff7cd2ff5eba5cd63e3a9c7bf6ccf183cb056.zip |
- djm@cvs.openbsd.org 2011/09/09 22:46:44
[channels.c channels.h clientloop.h mux.c ssh.c]
support for cancelling local and remote port forwards via the multiplex
socket. Use ssh -O cancel -L xx:xx:xx -R yy:yy:yy user@host" to request
the cancellation of the specified forwardings; ok markus@
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.364 2011/08/02 23:15:03 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.365 2011/09/09 22:46:44 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -377,6 +377,8 @@ main(int ac, char **av) muxclient_command = SSHMUX_COMMAND_TERMINATE; else if (strcmp(optarg, "stop") == 0) muxclient_command = SSHMUX_COMMAND_STOP; + else if (strcmp(optarg, "cancel") == 0) + muxclient_command = SSHMUX_COMMAND_CANCEL_FWD; else fatal("Invalid multiplex command."); break; |