summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.552
1 files changed, 50 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index 9ddd6b8a6..f35f468f4 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.168 2013/08/20 06:56:07 jmc Exp $ 36.\" $OpenBSD: ssh_config.5,v 1.169 2013/10/14 22:22:05 djm Exp $
37.Dd $Mdocdate: August 20 2013 $ 37.Dd $Mdocdate: October 14 2013 $
38.Dt SSH_CONFIG 5 38.Dt SSH_CONFIG 5
39.Os 39.Os
40.Sh NAME 40.Sh NAME
@@ -100,6 +100,8 @@ keywords are case-insensitive and arguments are case-sensitive):
100.It Cm Host 100.It Cm Host
101Restricts the following declarations (up to the next 101Restricts the following declarations (up to the next
102.Cm Host 102.Cm Host
103or
104.Cm Match
103keyword) to be only for those hosts that match one of the patterns 105keyword) to be only for those hosts that match one of the patterns
104given after the keyword. 106given after the keyword.
105If more than one pattern is provided, they should be separated by whitespace. 107If more than one pattern is provided, they should be separated by whitespace.
@@ -124,6 +126,52 @@ matches.
124See 126See
125.Sx PATTERNS 127.Sx PATTERNS
126for more information on patterns. 128for more information on patterns.
129.It Cm Match
130Restricts the following declarations (up to the next
131.Cm Host
132or
133.Cm Match
134keyword) to be used only when the conditions following the
135.Cm Match
136keyword are satisfied.
137Match conditions are specified using one or more keyword/criteria pairs.
138The available keywords are:
139.Cm command ,
140.Cm host ,
141.Cm originalhost ,
142.Cm user ,
143and
144.Cm localuser .
145.Pp
146The criteria for the
147.Cm command
148keyword is a path to a command that is executed.
149If the command returns a zero exit status then the condition is considered true.
150Commands containing whitespace characters must be quoted.
151.Pp
152The other keywords' criteria must be single entries or comma-separated
153lists and may use the wildcard and negation operators described in the
154.Sx PATTERNS
155section.
156The criteria for the
157.Cm host
158keyword are matched against the target hostname, after any substitution
159by the
160.Cm Hostname
161option.
162The
163.Cm originalhost
164keyword matches against the hostname as it was specified on the command-line.
165The
166.Cm user
167keyword matches against the target username on the remote host.
168The
169.Cm localuser
170keyword matches against the name of the local user running
171.Xr ssh 1
172(this keyword may be useful in system-wide
173.Nm
174files).
127.It Cm AddressFamily 175.It Cm AddressFamily
128Specifies which address family to use when connecting. 176Specifies which address family to use when connecting.
129Valid arguments are 177Valid arguments are