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: Thu, 15 Jan 2015 15:26:54 -0500 Message-ID: <87d26frdrl.fsf@bach.histomat.net> References: <87vbkbre16.fsf@bach.histomat.net> <87twzvbxb4.fsf@gmail.com> <20150113123829.GA3285@historicalmaterialism.info> <87egqy3g9k.fsf@gmail.com> <20150113151644.GB3285@historicalmaterialism.info> <87h9vsqab6.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421353823 6694 80.91.229.3 (15 Jan 2015 20:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 20:30:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 21:30:23 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 1YBr3d-00017Z-O3 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 21:30:21 +0100 Original-Received: from localhost ([::1]:52812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBr3d-0005It-06 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 15:30:21 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 15 Jan 2015 14:26:55 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:HLgak3lI3COp7kZHiX/4aff5b7E= Original-Lines: 57 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-ww8vPgtPZcR6NiGXUA8n//X9pFIqN05nhL4WLtlVa4ybykCgEJZcEBqqxizKEPocglmU90kOMSBBtQn!gKBK65Ef3PP3Bl3cIONkTvNr0fkavmtCVfN3q7OXREEt1wNcZLxoXsyMvro= Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3366 Original-Xref: usenet.stanford.edu gnu.emacs.help:209823 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:102102 Archived-At: Ted Zlatanov writes: > What does `auth-sources' contain? > > Turn `auth-source-debug' to 'trivia to see useful debug logs in > *Messages*. That will help you figure out what's going wrong, and what > specifically is needed in the .authinfo file. Thanks, Ted, but I've made no progress. Auth-sources is new to me. I've managed for years without being aware of it. I suppose that's because its defaults suited my needs. Now I'm variouly told it is both a library and a variable, which leaves me uncomfortable. I should start by describing my setup. I have several emacs init files depending on what I intend to do with an emacs session. In .fluxbox there is a key binding that starts an executable script named ~/scripts/emacs-util. This file runs emacs with a specific init file that I named ~.emacsUtility. This init file has a variety of things in it, but includes these lines: (add-to-list 'load-path "/home/haines/.emacs.d/elisp/") (load-library "tramp") This ~/.emacs.d/elisp/tramp is an init file that has only these lines: (set auth-source-debug `trivia) (setq tramp-default-method "ssh") (require 'auth-source) (customize-variable 'auth-sources) The second line is because I use SSH most often with LAN hosts. The third and fourth lines probably unecessary. This nesting of init files worries me, but I didn't have a problem until recently. I now do C-x C-f /HostName.com: ssh: Could not resolve hostname HostName.com. Name or server not known Tramp: Waiting for prompts... In *Messages* buffer: Loading tramp... done Tramp: Opening Connection for HostName.com using ssh Tramp: Sending command `exec ssh -e None HostName.com Beucase the web server wants the ftp protocol, my .authinfo file has the line: machine HostName.com port ftp login Benutzer password Geheim apparently this value for port is not seen. It seems the authinfo file not being accessed at all, although it is accessed when I SSH to LAN hosts. Haines