summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authordjm <djm>2011-05-14 22:44:45 +0000
committerdjm <djm>2011-05-14 22:44:45 +0000
commit9d5ebee71c9b5dee241d7df56953d43e666c63cf (patch)
tree2d4fdda14ac69238d4a1432ef1757ed4ba56f47d /ssh_config.5
parent8899301236c0287a9c913e64bd45f8b11cee06e3 (diff)
downloadopenssh-9d5ebee71c9b5dee241d7df56953d43e666c63cf.tar.gz
- djm@cvs.openbsd.org 2011/05/06 21:31:38
[readconf.c ssh_config.5] support negated Host matching, e.g. Host *.example.org !c.example.org User mekmitasdigoat Will match "a.example.org", "b.example.org", but not "c.example.org" ok markus@
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.511
1 files changed, 10 insertions, 1 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index a5bad8cc..5bdc7fec 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -33,7 +33,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: ssh_config.5,v 1.147 2011/05/06 21:18:02 djm Exp $
+.\" $OpenBSD: ssh_config.5,v 1.148 2011/05/06 21:31:38 djm Exp $
.Dd $Mdocdate: May 6 2011 $
.Dt SSH_CONFIG 5
.Os
@@ -112,6 +112,15 @@ The host is the
argument given on the command line (i.e. the name is not converted to
a canonicalized host name before matching).
.Pp
+A pattern entry may be negated by prefixing it with an exclamation mark
+.Pq Sq !\& .
+If a negated entry is matched, then the
+.Cm Host
+entry is ignored, regardless of whether any other patterns on the line
+match.
+Negated matches are therefore useful to provide exceptions for wildcard
+matches.
+.Pp
See
.Sx PATTERNS
for more information on patterns.