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 11:26:53 -0500 Message-ID: <87h9vsqab6.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421339424 25213 80.91.229.3 (15 Jan 2015 16:30:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 16:30:24 +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 17:30:20 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 1YBnJL-0000Uj-Lh for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 17:30:19 +0100 Original-Received: from localhost ([::1]:51587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBnJK-0003Nh-UD for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 11:30:18 -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 10:26:53 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:tbDylwH3elPQCLA2oz1q29QhSws= Original-Lines: 49 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-u3E1eQPLEyKS5fOy+LSj0ivkBtwc3fm/bdYhSKziMA01pvJBHVe9nlZj/sKbH03hyK5yqrVqZdFCxDs!DRE/dRUXK0Uun3Ha5H2MH/ifRGk7xxrLjxOWJiW4Ptro56JTE0ZeYh5gWE0= 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: 3125 Original-Xref: usenet.stanford.edu gnu.emacs.help:209816 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:102095 Archived-At: I've taken almost six hours from pressing work to get tramp to access web servers, and have gotten nowhere. The tramp manual says that default authorization file is ~/.authinfo.gpg. I assume I can use ~/.authinfo until I get things working. When I use tramp in emcas (C-x C-f), I get a quick alert: .netrc is either not owned by you or badly protected. The latter is the case. I have an old .netrc file with commented lines in it. I have impression the default tramp method is ftp, but if my C-x C-f command does not specify the method, the ssh method is instead used because in the tramp init file I specifid ftp as tramp's default method. I must access web servers with FTP, but I make ssh the defalt method because that's what I use to access hosts on my LAN. So when I access web servers I need to specify the ftp protocol. Man authinfo and info tramp do not tell me how to specify the method in the C-x C-f command, but I find by trial and error that I can manually log successfully with: C-x C-f /ftp:user@server.com: However, to log in automatically, I must define method and user in the .authinfo file. I can specify user and pw for my LAN hosts, but apparently it does not work for web servers. Thus the need to specify method and user in the command line. The tramp manual says my .authinfo line should look like this: machine server.com login Benutzer password Geheim But this does not work, for the password is nevertheless requested. If I insist by repeating the login, I can get this: ftp> user "Benutzer" 331 Password required for user Benutzer 530 Login incorrect ftp> I rechecked with the web server, and its protocol is FTP, and my account name and PW are correct. That I'm unable to log in automatically therefore suggests a synax error that prevents the info in .authinfo from being used. Haines