[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using sudo with authinfo file.
From: |
Michael Albinus |
Subject: |
Re: Using sudo with authinfo file. |
Date: |
Tue, 17 May 2011 10:29:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Ted Zlatanov <address@hidden> writes:
> On Mon, 16 May 2011 17:45:17 +0200 Michael Albinus
> <address@hidden> wrote:
>
> MA> Michael Jacobson <address@hidden> 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:address@hidden:/path".
> Ted
Best regards, Michael.
- Using sudo with authinfo file., Michael Jacobson, 2011/05/15
- Re: Using sudo with authinfo file., Michael Albinus, 2011/05/16
- Re: Using sudo with authinfo file., Michael Jacobson, 2011/05/16
- Re: Using sudo with authinfo file., Ted Zlatanov, 2011/05/16
- Re: Using sudo with authinfo file.,
Michael Albinus <=
- Re: Using sudo with authinfo file., Michael Jacobson, 2011/05/17
- Re: Using sudo with authinfo file., Ted Zlatanov, 2011/05/18
- Re: Using sudo with authinfo file., Michael Albinus, 2011/05/18
- Re: Using sudo with authinfo file., Ted Zlatanov, 2011/05/18
- Re: Using sudo with authinfo file., Michael Jacobson, 2011/05/20