help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run ssh in emacs


From: Tory S. Anderson
Subject: Re: run ssh in emacs
Date: Tue, 13 Jan 2015 10:23:14 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

As I recall, Tramp (which you are using with C-x C-f) by default uses .authinfo 
or .authinfo.gpg, not .netrc. I've started using these and have been impressed 
(as of 2 hours in)

Haines Brown <haines@histomat.net> writes:

> On Tue, Jan 13, 2015 at 09:29:59AM -0500, Tory S. Anderson wrote:
>
>> I forgot to mention, I also found this handy (although I might be able
>> to forego it with the authinfo trick):
>> 
>>     ;Cache passwords for one hour
>>     (setq password-cache-expiry 3600)
>
> I've made some progress, but still can't access the password in the
> ~/.netrc file. More specifically, in emacs I do
>
>       C-x C-f
>       /user@anon:
>
> and get:
>     
>     Password for /ssh:user@anon:
>
> even though in ~/.netrc I have the stanza:
>
>     machine user@anon
>         login user 
>         password <password>
>
> It seems the ~.netrc file not being read.
>
> Haines



reply via email to

[Prev in Thread] Current Thread [Next in Thread]