aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Albinus2008-06-21 11:51:31 +0000
committerMichael Albinus2008-06-21 11:51:31 +0000
commita06a4a125f58b62cae6de8336a4dc50ba7d903de (patch)
treed1d320defe55602e10b86dfdecf038376be86546 /doc
parent808dd567ef8b88cddf8b2b4eb6f8c3f9c5a3a262 (diff)
downloademacs-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/ChangeLog7
-rw-r--r--doc/misc/tramp.texi70
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 @@
12008-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
12008-06-20 Eli Zaretskii <eliz@gnu.org> 82008-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
578don't require a password (with @command{ssh-agent}, or such alike). 578don't require a password (with @command{ssh-agent}, or such alike).
579Modern @command{scp} implementations offer options to reuse existing 579Modern @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
581possible, you should consider @ref{Password caching}, otherwise you 581possible, you should consider @ref{Password handling}, otherwise you
582will be prompted for a password every copy action. 582will 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
1009Since authorization is done on share level, you will be prompted 1009Since authorization is done on share level, you will be prompted
1010always for a password if you access another share on the same host. 1010always for a password if you access another share on the same host.
1011This can be suppressed by @ref{Password caching}. 1011This can be suppressed by @ref{Password handling}.
1012 1012
1013MS Windows uses for authorization both a user name and a domain name. 1013MS Windows uses for authorization both a user name and a domain name.
1014Because of this, the @value{tramp} syntax has been extended: you can 1014Because 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
1530the chosen method does not support access without password prompt 1530the chosen method does not support access without password prompt
1531through own configuration. 1531through own configuration.
1532 1532
1533By default, @value{tramp} caches the passwords entered by you. They will 1533The best recommendation is to use the method's own mechanism for
1534be reused next time if a connection needs them for the same user name 1534password handling. Consider @command{ssh-agent} for @option{ssh}-like
1535and host name, independently of the connection method. 1535methods, or @command{pageant} for @option{plink}-like methods.
1536
1537However, 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
1545The package @file{auth-source.el}, originally developed in No Gnus,
1546offers the possibility to read passwords from a file, like FTP does it
1547from @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
1552A typical entry in the authentication file would be
1553
1554@example
1555machine melancholia port scp login daniel password geheim
1556@end example
1557
1558The port can be any @value{tramp} method (@pxref{Inline methods},
1559@pxref{External transfer methods}), to match only this method. When
1560you omit the port, you match all @value{tramp} methods.
1561
1562
1563@anchor{password-cache}
1564@subsection Caching passwords
1565
1566If there is no authentication file, @value{tramp} caches the passwords
1567entered by you. They will be reused next time if a connection needs
1568them for the same user name and host name, independently of the
1569connection method.
1536 1570
1537@vindex password-cache-expiry 1571@vindex password-cache-expiry
1538Passwords are not saved permanently, that means the password caching 1572Passwords 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
1550Implementation Note: password caching is based on the package 1584Implementation 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
1552only when this package is seen in the @code{load-path} while loading 1586when this package is seen in the @code{load-path} while loading
1553@value{tramp}. 1587@value{tramp}.
1554@ifset installchapter 1588@ifset installchapter
1555If you don't use No Gnus, you can take @file{password.el} from the 1589If 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
1557parameters}. 1591parameters}.
1558@end ifset 1592@end ifset
1559It 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
1602When @value{tramp} detects a changed operating system version on a 1634When @value{tramp} detects a changed operating system version on a
1603remote host (via the command @command{uname -sr}), it flushes all 1635remote host (via the command @command{uname -sr}), it flushes all
1604connection related information for this host, quits the execution, and 1636connection related information for this host, and opens the
1605displays a message like this: 1637connection, again.
1606
1607@example
1608Quit: "Connection reset, because remote host changed from `Linux
16092.6.22-13-generic' to `Linux 2.6.22-14-generic'"
1610@end example
1611
1612@noindent
1613You 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
2445interactively, the command offers all active remote connections in the 2469interactively, the command offers all active remote connections in the
2446minibuffer as remote file name prefix like @file{@trampfn{method, 2470minibuffer as remote file name prefix like @file{@trampfn{method,
2447user, host, }}. The cleanup includes password cache (@pxref{Password 2471user, host, }}. The cleanup includes password cache (@pxref{Password
2448caching}), file cache, connection cache (@pxref{Connection caching}), 2472handling}), file cache, connection cache (@pxref{Connection caching}),
2449connection buffers. 2473connection buffers.
2450@end deffn 2474@end deffn
2451 2475