From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Haines Brown Newsgroups: gmane.emacs.help Subject: Re: run ssh in emacs Date: Tue, 13 Jan 2015 13:11:14 -0500 Message-ID: <20150113181114.GA13081@historicalmaterialism.info> References: <87vbkbre16.fsf@bach.histomat.net> <87twzvbxb4.fsf@gmail.com> <20150113123829.GA3285@historicalmaterialism.info> <87egqy3g9k.fsf@gmail.com> <20150113151644.GB3285@historicalmaterialism.info> <87a91m3dst.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1421172706 18790 80.91.229.3 (13 Jan 2015 18:11:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 18:11:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Tory S. Anderson" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 19:11:40 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YB5wH-00011Q-Bh for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 19:11:37 +0100 Original-Received: from localhost ([::1]:40753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB5wG-0003ut-Ii for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 13:11:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB5w4-0003uo-Sq for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 13:11:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB5w0-0003sy-JO for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 13:11:24 -0500 Original-Received: from outbound-relay2.guardedhost.com ([2607:fe90:1:1::202]:22012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB5w0-0003sl-Ba for help-gnu-emacs@gnu.org; Tue, 13 Jan 2015 13:11:20 -0500 Original-Received: from relay.omnis.com (ten-mx04.omnis.com [216.239.133.144]) by outbound-relay.guardedhost.com (Postfix) with ESMTP id 3kMKbp68BMz3y7h; Tue, 13 Jan 2015 18:11:18 +0000 (GMT) Original-Received: from bach.histomat.net (unknown [32.210.114.254]) (Authenticated sender: brownh@historicalmaterialism.info) by relay.omnis.com (Postfix) with ESMTPSA id 3kMKbn3yXCzFqCl; Tue, 13 Jan 2015 18:11:17 +0000 (GMT) Original-Received: from haines by bach.histomat.net with local (Exim 4.80) (envelope-from ) id 1YB5vu-0003YM-60; Tue, 13 Jan 2015 13:11:16 -0500 Content-Disposition: inline In-Reply-To: <87a91m3dst.fsf@gmail.com> X-Operating-System: GNU/Linux 3.2.0-4-686-pae Debian Wheezy X-URL: www.historicalMaterialism.info User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: haines@historicalmaterialism.info X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on bach.histomat.net) X-Virus-Scanned: clamav-milter 0.98.4 at ten-mx04.omnis.com X-Virus-Status: Clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse-Id: df5abb03-94bb-4a5a-81ff-a9e7db189e7d X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:fe90:1:1::202 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102052 Archived-At: 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 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 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 > > > > It seems the ~.netrc file not being read. > > > > Haines