aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2012-07-06 15:19:33 +0200
committerMichael Albinus2012-07-06 15:19:33 +0200
commitef091c97708639d01fff5e185516d8455a620de7 (patch)
treea9f884ba71fa8f48b701c1cca7f32d96a7f01671 /doc/misc
parent07b151f1bc4290377085aa41564a918b718def9f (diff)
downloademacs-ef091c97708639d01fff5e185516d8455a620de7.tar.gz
emacs-ef091c97708639d01fff5e185516d8455a620de7.zip
* tramp.texi (Multi-hops): Introduce `tramp-restricted-shell-hosts-alist'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/tramp.texi36
2 files changed, 34 insertions, 7 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 42320b227f8..99e5b5d9345 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12012-07-06 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Multi-hops): Introduce
4 `tramp-restricted-shell-hosts-alist'.
5
12012-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> 62012-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * gnus.texi (POP before SMTP): POP-before-SMTP works with all sending 8 * gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 69f0c6d8880..87ad2bc5009 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1327,19 +1327,21 @@ because @samp{/:} is the prefix for quoted file names.
1327@cindex multi-hop 1327@cindex multi-hop
1328@cindex proxy hosts 1328@cindex proxy hosts
1329 1329
1330Sometimes, the methods described before are not sufficient. Sometimes, 1330Sometimes, the methods described before are not sufficient.
1331it is not possible to connect to a remote host using a simple command. 1331Sometimes, it is not possible to connect to a remote host using a
1332For example, if you are in a secured network, you might have to log in 1332simple command. For example, if you are in a secured network, you
1333to a `bastion host' first before you can connect to the outside world. 1333might have to log in to a bastion host first before you can connect to
1334Of course, the target host may also require a bastion host. 1334the outside world. Of course, the target host may also require a
1335bastion host.
1335 1336
1336@vindex tramp-default-proxies-alist 1337@vindex tramp-default-proxies-alist
1337In order to specify such multiple hops, it is possible to define a proxy 1338@defopt tramp-default-proxies-alist
1339In order to specify multiple hops, it is possible to define a proxy
1338host to pass through, via the variable 1340host to pass through, via the variable
1339@code{tramp-default-proxies-alist}. This variable keeps a list of 1341@code{tramp-default-proxies-alist}. This variable keeps a list of
1340triples (@var{host} @var{user} @var{proxy}). 1342triples (@var{host} @var{user} @var{proxy}).
1341 1343
1342 The first matching item specifies the proxy host to be passed for a 1344The first matching item specifies the proxy host to be passed for a
1343file name located on a remote target matching @var{user}@@@var{host}. 1345file name located on a remote target matching @var{user}@@@var{host}.
1344@var{host} and @var{user} are regular expressions or @code{nil}, which 1346@var{host} and @var{user} are regular expressions or @code{nil}, which
1345is interpreted as a regular expression which always matches. 1347is interpreted as a regular expression which always matches.
@@ -1442,6 +1444,26 @@ following rule:
1442Gateway methods can be declared as first hop only in a multiple hop 1444Gateway methods can be declared as first hop only in a multiple hop
1443chain. 1445chain.
1444@end ifset 1446@end ifset
1447@end defopt
1448
1449Hops to be passed tend to be restricted firewalls and alike.
1450Sometimes they offer limited features only, like running @command{rbash}
1451(restricted bash). This must be told to @value{tramp}.
1452
1453@vindex tramp-restricted-shell-hosts-alist
1454@defopt tramp-restricted-shell-hosts-alist
1455This variable keeps a list of regular expressions, which denote hosts
1456running a registered shell like "rbash". Those hosts can be used as
1457proxies only.
1458
1459If the bastion host from the example above runs a restricted shell,
1460you shall apply
1461
1462@lisp
1463(add-to-list 'tramp-restricted-shell-hosts-alist
1464 "\\`bastion\\.your\\.domain\\'")
1465@end lisp
1466@end defopt
1445 1467
1446 1468
1447@node Customizing Methods 1469@node Customizing Methods