From: Haines Brown <haines@histomat.net>
To: "Tory S. Anderson" <torys.anderson@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: run ssh in emacs
Date: Tue, 13 Jan 2015 13:11:14 -0500 [thread overview]
Message-ID: <20150113181114.GA13081@historicalmaterialism.info> (raw)
In-Reply-To: <87a91m3dst.fsf@gmail.com>
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
next prev parent reply other threads:[~2015-01-13 18:11 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 19:32 run ssh in emacs Haines Brown
2015-01-12 19:42 ` Tory S. Anderson
2015-01-13 12:38 ` Haines Brown
2015-01-13 13:04 ` Nikolay Kudryavtsev
2015-01-13 13:18 ` Tory S. Anderson
2015-01-13 13:21 ` Michael Albinus
2015-01-13 13:18 ` Tory S. Anderson
2015-01-13 13:28 ` Michael Albinus
2015-01-13 14:29 ` Tory S. Anderson
2015-01-13 15:16 ` Haines Brown
2015-01-13 15:23 ` Tory S. Anderson
2015-01-13 18:11 ` Haines Brown [this message]
2015-01-14 4:26 ` Bob Proulx
[not found] ` <mailman.17817.1421162618.1147.help-gnu-emacs@gnu.org>
2015-01-15 16:26 ` Haines Brown
2015-01-15 17:19 ` Ted Zlatanov
2015-01-15 20:26 ` Haines Brown
2015-01-15 21:10 ` Ted Zlatanov
2015-01-16 17:18 ` Haines Brown
2015-01-16 19:59 ` Michael Albinus
[not found] ` <mailman.18043.1421438398.1147.help-gnu-emacs@gnu.org>
2015-01-16 20:55 ` Haines Brown
2015-01-16 21:34 ` Dan Espen
2015-01-16 21:36 ` Michael Albinus
2015-01-17 12:17 ` Haines Brown
2015-01-17 17:12 ` Michael Albinus
[not found] ` <mailman.18073.1421514787.1147.help-gnu-emacs@gnu.org>
2015-01-17 20:15 ` Haines Brown
2015-01-17 23:32 ` Dan Espen
2015-01-18 12:29 ` Haines Brown
2015-01-19 2:15 ` Dan Espen
[not found] ` <mailman.18064.1421497097.1147.help-gnu-emacs@gnu.org>
2015-01-17 14:13 ` Dan Espen
[not found] ` <mailman.17814.1421162216.1147.help-gnu-emacs@gnu.org>
2015-01-13 16:59 ` Dan Espen
[not found] ` <mailman.17800.1421154285.1147.help-gnu-emacs@gnu.org>
2015-01-14 12:14 ` Haines Brown
2015-01-14 19:55 ` Bob Proulx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150113181114.GA13081@historicalmaterialism.info \
--to=haines@histomat.net \
--cc=help-gnu-emacs@gnu.org \
--cc=torys.anderson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.