diff options
author | Damien Miller <djm@mindrot.org> | 2006-07-24 14:06:47 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-07-24 14:06:47 +1000 |
commit | e275443f66aab6d46356d6940b8a8b291cab4f9e (patch) | |
tree | cd72ec0001cf412475f5348aa83c830252d0e1ce /sshd_config.5 | |
parent | d1de9950e5ae91584aa955a4f85c9c7579aa76af (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.5 | 15 |
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 | |||
283 | in | 283 | in |
284 | .Xr ssh_config 5 | 284 | .Xr ssh_config 5 |
285 | for more information on patterns. | 285 | for more information on patterns. |
286 | .It Cm ForceCommand | ||
287 | Forces the execution of the command specified by | ||
288 | .Cm ForceCommand , | ||
289 | ignoring any command supplied by the client. | ||
290 | The command is invoked by using the user's login shell with the -c option. | ||
291 | This applies to shell, command, or subsystem execution. | ||
292 | It is most useful inside a | ||
293 | .Cm Match | ||
294 | block. | ||
295 | The command originally supplied by the client is available in the | ||
296 | .Ev SSH_ORIGINAL_COMMAND | ||
297 | environment variable. | ||
286 | .It Cm GatewayPorts | 298 | .It Cm GatewayPorts |
287 | Specifies whether remote hosts are allowed to connect to ports | 299 | Specifies whether remote hosts are allowed to connect to ports |
288 | forwarded for the client. | 300 | forwarded for the client. |
@@ -484,6 +496,7 @@ Only a subset of keywords may be used on the lines following a | |||
484 | keyword. | 496 | keyword. |
485 | Available keywords are | 497 | Available 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 , |