Ted Zlatanov <[email protected]> writes:

> On Mon, 16 May 2011 17:45:17 +0200 Michael Albinus
> <[email protected]> wrote:
>
> MA> Michael Jacobson <[email protected]> writes:
>>> Any thoughts on why this is not reading my password from the authinfo
>>> file? If I try to connect via "/ssh:192.168.1.120" it reads my
>>> authinfo password and connects without prompting me. It is only when
>>> using "/sudo" that the I am prompted.  According to
>>> http://www.gnu.org/software/tramp/#Multi_002dhops it seems like this
>>> should work. Any idea what I am doing wrong?
>
> MA> With Emacs 23, auth-source.el has been added to Emacs core. IIRC, there
> MA> are changes in the interface. Likely, you need to add "port sudo" in
> MA> your ~/authinfo. See 
> <http://www.gnu.org/software/tramp/#Password-handling>
> MA> for discussion.
>
> That node doesn't mention `auth-source-debug' which can be customized to
> t.  The first debugging step should be to set it to t and look at
> *Messages*.  You'll see exactly what auth-source is looking for
> in the authinfo file.

That's always a good start to look for. My guess is, that Tramp might be
looking for "localhost" or something like this not contained in
.authinfo, if you are connecting via a "/sudo::/path" file name. You
might check your settings for `tramp-default-host' or
`tramp-default-proxies-alist'. Or you use explicit user name and host
name for test purposes, like "/sudo:root@hostname:/path".

> Ted

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to