diff options
| author | Michael Albinus | 2012-07-06 15:19:33 +0200 |
|---|---|---|
| committer | Michael Albinus | 2012-07-06 15:19:33 +0200 |
| commit | ef091c97708639d01fff5e185516d8455a620de7 (patch) | |
| tree | a9f884ba71fa8f48b701c1cca7f32d96a7f01671 /doc/misc | |
| parent | 07b151f1bc4290377085aa41564a918b718def9f (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 36 |
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 @@ | |||
| 1 | 2012-07-06 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Multi-hops): Introduce | ||
| 4 | `tramp-restricted-shell-hosts-alist'. | ||
| 5 | |||
| 1 | 2012-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2012-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 | ||
| 1330 | Sometimes, the methods described before are not sufficient. Sometimes, | 1330 | Sometimes, the methods described before are not sufficient. |
| 1331 | it is not possible to connect to a remote host using a simple command. | 1331 | Sometimes, it is not possible to connect to a remote host using a |
| 1332 | For example, if you are in a secured network, you might have to log in | 1332 | simple command. For example, if you are in a secured network, you |
| 1333 | to a `bastion host' first before you can connect to the outside world. | 1333 | might have to log in to a bastion host first before you can connect to |
| 1334 | Of course, the target host may also require a bastion host. | 1334 | the outside world. Of course, the target host may also require a |
| 1335 | bastion host. | ||
| 1335 | 1336 | ||
| 1336 | @vindex tramp-default-proxies-alist | 1337 | @vindex tramp-default-proxies-alist |
| 1337 | In order to specify such multiple hops, it is possible to define a proxy | 1338 | @defopt tramp-default-proxies-alist |
| 1339 | In order to specify multiple hops, it is possible to define a proxy | ||
| 1338 | host to pass through, via the variable | 1340 | host 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 |
| 1340 | triples (@var{host} @var{user} @var{proxy}). | 1342 | triples (@var{host} @var{user} @var{proxy}). |
| 1341 | 1343 | ||
| 1342 | The first matching item specifies the proxy host to be passed for a | 1344 | The first matching item specifies the proxy host to be passed for a |
| 1343 | file name located on a remote target matching @var{user}@@@var{host}. | 1345 | file 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 |
| 1345 | is interpreted as a regular expression which always matches. | 1347 | is interpreted as a regular expression which always matches. |
| @@ -1442,6 +1444,26 @@ following rule: | |||
| 1442 | Gateway methods can be declared as first hop only in a multiple hop | 1444 | Gateway methods can be declared as first hop only in a multiple hop |
| 1443 | chain. | 1445 | chain. |
| 1444 | @end ifset | 1446 | @end ifset |
| 1447 | @end defopt | ||
| 1448 | |||
| 1449 | Hops to be passed tend to be restricted firewalls and alike. | ||
| 1450 | Sometimes 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 | ||
| 1455 | This variable keeps a list of regular expressions, which denote hosts | ||
| 1456 | running a registered shell like "rbash". Those hosts can be used as | ||
| 1457 | proxies only. | ||
| 1458 | |||
| 1459 | If the bastion host from the example above runs a restricted shell, | ||
| 1460 | you 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 |