summaryrefslogtreecommitdiff
path: root/sshd_config.5
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-24 14:06:47 +1000
committerDamien Miller <djm@mindrot.org>2006-07-24 14:06:47 +1000
commite275443f66aab6d46356d6940b8a8b291cab4f9e (patch)
treecd72ec0001cf412475f5348aa83c830252d0e1ce /sshd_config.5
parentd1de9950e5ae91584aa955a4f85c9c7579aa76af (diff)
- dtucker@cvs.openbsd.org 2006/07/19 13:07:10
[servconf.c servconf.h session.c sshd.8 sshd_config sshd_config.5] Add ForceCommand keyword to sshd_config, equivalent to the "command=" key option, man page entry and example in sshd_config. Feedback & ok djm@, man page corrections & ok jmc@
Diffstat (limited to 'sshd_config.5')
-rw-r--r--sshd_config.515
1 files changed, 14 insertions, 1 deletions
diff --git a/sshd_config.5 b/sshd_config.5
index 9196b761e..26c895f7a 100644
--- a/sshd_config.5
+++ b/sshd_config.5
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: sshd_config.5,v 1.66 2006/07/19 08:56:41 dtucker Exp $ 37.\" $OpenBSD: sshd_config.5,v 1.67 2006/07/19 13:07:10 dtucker Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSHD_CONFIG 5 39.Dt SSHD_CONFIG 5
40.Os 40.Os
@@ -283,6 +283,18 @@ See
283in 283in
284.Xr ssh_config 5 284.Xr ssh_config 5
285for more information on patterns. 285for more information on patterns.
286.It Cm ForceCommand
287Forces the execution of the command specified by
288.Cm ForceCommand ,
289ignoring any command supplied by the client.
290The command is invoked by using the user's login shell with the -c option.
291This applies to shell, command, or subsystem execution.
292It is most useful inside a
293.Cm Match
294block.
295The command originally supplied by the client is available in the
296.Ev SSH_ORIGINAL_COMMAND
297environment variable.
286.It Cm GatewayPorts 298.It Cm GatewayPorts
287Specifies whether remote hosts are allowed to connect to ports 299Specifies whether remote hosts are allowed to connect to ports
288forwarded for the client. 300forwarded for the client.
@@ -484,6 +496,7 @@ Only a subset of keywords may be used on the lines following a
484keyword. 496keyword.
485Available keywords are 497Available keywords are
486.Cm AllowTcpForwarding , 498.Cm AllowTcpForwarding ,
499.Cm ForceCommand ,
487.Cm GatewayPorts , 500.Cm GatewayPorts ,
488.Cm PermitOpen , 501.Cm PermitOpen ,
489.Cm X11DisplayOffset , 502.Cm X11DisplayOffset ,