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: Haines Brown
Subject: Re: run ssh in emacs
Date: Tue, 13 Jan 2015 13:11:14 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jan 13, 2015 at 10:23:14AM -0500, Tory S. Anderson wrote: 

> 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)

That was my problem. Years ago I used ftp to transfer files, and so
used ~/.netrc. I followed your suggestion and instead use ~/.authinfo,
and how I have no problem accessing hosts on my LAN. 

When I try to access web servers via ssh, however, it does not work. 
For example, in .authinfo I have this:

    machine uss-irex.info:/www
        login <user>
        password <password>

So I do C-x C-f /uss-irex.info:/www and I'm prompted for the password.
The password not accepted. If I do C-x C-f /user@uss-irex.info:
apparently the user is recognied because when I enter the password at 
prompt, but I'm told I lack permission.

Haines



> 
> 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]