diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-23 16:29:12 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-23 16:29:12 +1100 |
commit | 5c86ebdf83b636b6741db4b03569ef4a53b89a58 (patch) | |
tree | 209dd5d4cb3dab45015742e3589a34af714f734d /ssh_config.5 | |
parent | 4502f88774edc56194707167443f94026d3c7cfa (diff) |
- djm@cvs.openbsd.org 2013/10/20 04:39:28
[ssh_config.5]
document % expansions performed by "Match command ..."
Diffstat (limited to 'ssh_config.5')
-rw-r--r-- | ssh_config.5 | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index c99678f6f..3e9524dcc 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.174 2013/10/16 22:58:01 djm Exp $ | 36 | .\" $OpenBSD: ssh_config.5,v 1.175 2013/10/20 04:39:28 djm Exp $ |
37 | .Dd $Mdocdate: October 16 2013 $ | 37 | .Dd $Mdocdate: October 20 2013 $ |
38 | .Dt SSH_CONFIG 5 | 38 | .Dt SSH_CONFIG 5 |
39 | .Os | 39 | .Os |
40 | .Sh NAME | 40 | .Sh NAME |
@@ -148,6 +148,24 @@ The criteria for the | |||
148 | keyword is a path to a command that is executed. | 148 | keyword is a path to a command that is executed. |
149 | If the command returns a zero exit status then the condition is considered true. | 149 | If the command returns a zero exit status then the condition is considered true. |
150 | Commands containing whitespace characters must be quoted. | 150 | Commands containing whitespace characters must be quoted. |
151 | The following character sequences in the command will be expanded prior to | ||
152 | execution: | ||
153 | .Ql %L | ||
154 | will be substituted by the first component of the local host name, | ||
155 | .Ql %l | ||
156 | will be substituted by the local host name (including any domain name), | ||
157 | .Ql %h | ||
158 | will be substituted by the target host name, | ||
159 | .Ql %n | ||
160 | will be substituted by the original target host name | ||
161 | specified on the command line, | ||
162 | .Ql %p | ||
163 | the destination port, | ||
164 | .Ql %r | ||
165 | by the remote login username, and | ||
166 | .Ql %u | ||
167 | by the username of the user running | ||
168 | .Xr ssh 1 . | ||
151 | .Pp | 169 | .Pp |
152 | The other keywords' criteria must be single entries or comma-separated | 170 | The other keywords' criteria must be single entries or comma-separated |
153 | lists and may use the wildcard and negation operators described in the | 171 | lists and may use the wildcard and negation operators described in the |
@@ -444,7 +462,7 @@ will be substituted by the target host name, | |||
444 | will be substituted by the original target host name | 462 | will be substituted by the original target host name |
445 | specified on the command line, | 463 | specified on the command line, |
446 | .Ql %p | 464 | .Ql %p |
447 | the port, | 465 | the destination port, |
448 | .Ql %r | 466 | .Ql %r |
449 | by the remote login username, and | 467 | by the remote login username, and |
450 | .Ql %u | 468 | .Ql %u |