diff options
| author | Michael Albinus | 2008-06-21 11:51:31 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-06-21 11:51:31 +0000 |
| commit | a06a4a125f58b62cae6de8336a4dc50ba7d903de (patch) | |
| tree | d1d320defe55602e10b86dfdecf038376be86546 /doc | |
| parent | 808dd567ef8b88cddf8b2b4eb6f8c3f9c5a3a262 (diff) | |
| download | emacs-a06a4a125f58b62cae6de8336a4dc50ba7d903de.tar.gz emacs-a06a4a125f58b62cae6de8336a4dc50ba7d903de.zip | |
* tramp.texi (Password handling): Renamed from "Password
caching". Add `auth-source' mechanism.
(Connection caching): Tramp reopens the connection automatically,
when the operating system on the remote host has been changed.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 70 |
2 files changed, 54 insertions, 23 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index dcc04df3fe1..57a29a3c1a8 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-06-21 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Password handling): Renamed from "Password | ||
| 4 | caching". Add `auth-source' mechanism. | ||
| 5 | (Connection caching): Tramp reopens the connection automatically, | ||
| 6 | when the operating system on the remote host has been changed. | ||
| 7 | |||
| 1 | 2008-06-20 Eli Zaretskii <eliz@gnu.org> | 8 | 2008-06-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * makefile.w32-in (distclean): Remove makefile. | 10 | * makefile.w32-in (distclean): Remove makefile. |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 65782c80a76..e3016f637a7 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -197,7 +197,7 @@ Configuring @value{tramp} for use | |||
| 197 | * Multi-hops:: Connecting to a remote host using multiple hops. | 197 | * Multi-hops:: Connecting to a remote host using multiple hops. |
| 198 | * Customizing Methods:: Using Non-Standard Methods. | 198 | * Customizing Methods:: Using Non-Standard Methods. |
| 199 | * Customizing Completion:: Selecting config files for user/host name completion. | 199 | * Customizing Completion:: Selecting config files for user/host name completion. |
| 200 | * Password caching:: Reusing passwords for several connections. | 200 | * Password handling:: Reusing passwords for several connections. |
| 201 | * Connection caching:: Reusing connection related information. | 201 | * Connection caching:: Reusing connection related information. |
| 202 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. | 202 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. |
| 203 | * Remote shell setup:: Remote shell setup hints. | 203 | * Remote shell setup:: Remote shell setup hints. |
| @@ -525,7 +525,7 @@ Method}. | |||
| 525 | * Multi-hops:: Connecting to a remote host using multiple hops. | 525 | * Multi-hops:: Connecting to a remote host using multiple hops. |
| 526 | * Customizing Methods:: Using Non-Standard Methods. | 526 | * Customizing Methods:: Using Non-Standard Methods. |
| 527 | * Customizing Completion:: Selecting config files for user/host name completion. | 527 | * Customizing Completion:: Selecting config files for user/host name completion. |
| 528 | * Password caching:: Reusing passwords for several connections. | 528 | * Password handling:: Reusing passwords for several connections. |
| 529 | * Connection caching:: Reusing connection related information. | 529 | * Connection caching:: Reusing connection related information. |
| 530 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. | 530 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. |
| 531 | * Remote shell setup:: Remote shell setup hints. | 531 | * Remote shell setup:: Remote shell setup hints. |
| @@ -578,7 +578,7 @@ External transfer methods should be configured such a way that they | |||
| 578 | don't require a password (with @command{ssh-agent}, or such alike). | 578 | don't require a password (with @command{ssh-agent}, or such alike). |
| 579 | Modern @command{scp} implementations offer options to reuse existing | 579 | Modern @command{scp} implementations offer options to reuse existing |
| 580 | @command{ssh} connections, see method @command{scpc}. If it isn't | 580 | @command{ssh} connections, see method @command{scpc}. If it isn't |
| 581 | possible, you should consider @ref{Password caching}, otherwise you | 581 | possible, you should consider @ref{Password handling}, otherwise you |
| 582 | will be prompted for a password every copy action. | 582 | will be prompted for a password every copy action. |
| 583 | 583 | ||
| 584 | 584 | ||
| @@ -1008,7 +1008,7 @@ directory @code{/}), all available shares are listed. | |||
| 1008 | 1008 | ||
| 1009 | Since authorization is done on share level, you will be prompted | 1009 | Since authorization is done on share level, you will be prompted |
| 1010 | always for a password if you access another share on the same host. | 1010 | always for a password if you access another share on the same host. |
| 1011 | This can be suppressed by @ref{Password caching}. | 1011 | This can be suppressed by @ref{Password handling}. |
| 1012 | 1012 | ||
| 1013 | MS Windows uses for authorization both a user name and a domain name. | 1013 | MS Windows uses for authorization both a user name and a domain name. |
| 1014 | Because of this, the @value{tramp} syntax has been extended: you can | 1014 | Because of this, the @value{tramp} syntax has been extended: you can |
| @@ -1521,7 +1521,7 @@ Example: | |||
| 1521 | @end defun | 1521 | @end defun |
| 1522 | 1522 | ||
| 1523 | 1523 | ||
| 1524 | @node Password caching | 1524 | @node Password handling |
| 1525 | @section Reusing passwords for several connections. | 1525 | @section Reusing passwords for several connections. |
| 1526 | @cindex passwords | 1526 | @cindex passwords |
| 1527 | 1527 | ||
| @@ -1530,9 +1530,43 @@ times. Reentering passwords again and again would be annoying, when | |||
| 1530 | the chosen method does not support access without password prompt | 1530 | the chosen method does not support access without password prompt |
| 1531 | through own configuration. | 1531 | through own configuration. |
| 1532 | 1532 | ||
| 1533 | By default, @value{tramp} caches the passwords entered by you. They will | 1533 | The best recommendation is to use the method's own mechanism for |
| 1534 | be reused next time if a connection needs them for the same user name | 1534 | password handling. Consider @command{ssh-agent} for @option{ssh}-like |
| 1535 | and host name, independently of the connection method. | 1535 | methods, or @command{pageant} for @option{plink}-like methods. |
| 1536 | |||
| 1537 | However, if you cannot apply such native password handling, | ||
| 1538 | @value{tramp} offers altenatives. | ||
| 1539 | |||
| 1540 | |||
| 1541 | @anchor{auth-sources} | ||
| 1542 | @subsection Using an authentication file | ||
| 1543 | |||
| 1544 | @vindex auth-sources | ||
| 1545 | The package @file{auth-source.el}, originally developed in No Gnus, | ||
| 1546 | offers the possibility to read passwords from a file, like FTP does it | ||
| 1547 | from @file{~/.netrc}. The default authentication file is | ||
| 1548 | @file{~/.authinfo.gpg}, this can be changed via the variable | ||
| 1549 | @code{auth-sources}. | ||
| 1550 | |||
| 1551 | @noindent | ||
| 1552 | A typical entry in the authentication file would be | ||
| 1553 | |||
| 1554 | @example | ||
| 1555 | machine melancholia port scp login daniel password geheim | ||
| 1556 | @end example | ||
| 1557 | |||
| 1558 | The port can be any @value{tramp} method (@pxref{Inline methods}, | ||
| 1559 | @pxref{External transfer methods}), to match only this method. When | ||
| 1560 | you omit the port, you match all @value{tramp} methods. | ||
| 1561 | |||
| 1562 | |||
| 1563 | @anchor{password-cache} | ||
| 1564 | @subsection Caching passwords | ||
| 1565 | |||
| 1566 | If there is no authentication file, @value{tramp} caches the passwords | ||
| 1567 | entered by you. They will be reused next time if a connection needs | ||
| 1568 | them for the same user name and host name, independently of the | ||
| 1569 | connection method. | ||
| 1536 | 1570 | ||
| 1537 | @vindex password-cache-expiry | 1571 | @vindex password-cache-expiry |
| 1538 | Passwords are not saved permanently, that means the password caching | 1572 | Passwords are not saved permanently, that means the password caching |
| @@ -1548,16 +1582,14 @@ can be disabled totally by customizing the variable | |||
| 1548 | @code{password-cache} (setting it to @code{nil}). | 1582 | @code{password-cache} (setting it to @code{nil}). |
| 1549 | 1583 | ||
| 1550 | Implementation Note: password caching is based on the package | 1584 | Implementation Note: password caching is based on the package |
| 1551 | @file{password.el} in No Gnus. For the time being, it is activated | 1585 | @file{password-cache.el}. For the time being, it is activated only |
| 1552 | only when this package is seen in the @code{load-path} while loading | 1586 | when this package is seen in the @code{load-path} while loading |
| 1553 | @value{tramp}. | 1587 | @value{tramp}. |
| 1554 | @ifset installchapter | 1588 | @ifset installchapter |
| 1555 | If you don't use No Gnus, you can take @file{password.el} from the | 1589 | If you don't use No Gnus, you can take @file{password.el} from the |
| 1556 | @value{tramp} @file{contrib} directory, see @ref{Installation | 1590 | @value{tramp} @file{contrib} directory, see @ref{Installation |
| 1557 | parameters}. | 1591 | parameters}. |
| 1558 | @end ifset | 1592 | @end ifset |
| 1559 | It will be activated mandatory once No Gnus has found its way into | ||
| 1560 | @value{emacsname}. | ||
| 1561 | 1593 | ||
| 1562 | 1594 | ||
| 1563 | @node Connection caching | 1595 | @node Connection caching |
| @@ -1601,16 +1633,8 @@ multiple hops (@pxref{Multi-hops}). | |||
| 1601 | 1633 | ||
| 1602 | When @value{tramp} detects a changed operating system version on a | 1634 | When @value{tramp} detects a changed operating system version on a |
| 1603 | remote host (via the command @command{uname -sr}), it flushes all | 1635 | remote host (via the command @command{uname -sr}), it flushes all |
| 1604 | connection related information for this host, quits the execution, and | 1636 | connection related information for this host, and opens the |
| 1605 | displays a message like this: | 1637 | connection, again. |
| 1606 | |||
| 1607 | @example | ||
| 1608 | Quit: "Connection reset, because remote host changed from `Linux | ||
| 1609 | 2.6.22-13-generic' to `Linux 2.6.22-14-generic'" | ||
| 1610 | @end example | ||
| 1611 | |||
| 1612 | @noindent | ||
| 1613 | You can simply open the remote file again in such a case. | ||
| 1614 | 1638 | ||
| 1615 | 1639 | ||
| 1616 | @node Remote Programs | 1640 | @node Remote Programs |
| @@ -2445,7 +2469,7 @@ the internal representation of a remote connection. Called | |||
| 2445 | interactively, the command offers all active remote connections in the | 2469 | interactively, the command offers all active remote connections in the |
| 2446 | minibuffer as remote file name prefix like @file{@trampfn{method, | 2470 | minibuffer as remote file name prefix like @file{@trampfn{method, |
| 2447 | user, host, }}. The cleanup includes password cache (@pxref{Password | 2471 | user, host, }}. The cleanup includes password cache (@pxref{Password |
| 2448 | caching}), file cache, connection cache (@pxref{Connection caching}), | 2472 | handling}), file cache, connection cache (@pxref{Connection caching}), |
| 2449 | connection buffers. | 2473 | connection buffers. |
| 2450 | @end deffn | 2474 | @end deffn |
| 2451 | 2475 | ||