From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: Re: unable to visit /ftp:USER@MACHINE.com:~ Date: Sun, 13 Aug 2017 12:56:29 +0200 Message-ID: <87wp67pwgy.fsf@len> References: <87378y2hvl.fsf@len> <871sofu9p3.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502631769 27876 195.159.176.226 (13 Aug 2017 13:42:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 13:42:49 +0000 (UTC) To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 13 15:42:42 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgtA8-0006hK-VM for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2017 15:42:41 +0200 Original-Received: from localhost ([::1]:51373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgtAF-0006zt-Ew for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2017 09:42:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgt9i-0006yr-VO for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 09:42:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgt9f-0002Uw-Mu for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 09:42:15 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:51592) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgt9f-0002Sl-BV for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 09:42:11 -0400 Original-Received: from len.workgroup ([84.189.137.150]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M2c1V-1dQjFV2ANR-00sPQ3 for ; Sun, 13 Aug 2017 15:42:08 +0200 Resent-To: help-gnu-emacs@gnu.org Resent-Bcc: grfz@localhost Resent-From: Gregor Zattler Resent-Date: Sun, 13 Aug 2017 15:42:04 +0200 Resent-Message-ID: <87r2wfposz.fsf@len> In-Reply-To: <871sofu9p3.fsf@detlef> X-Provags-ID: V03:K0:OJ2ePHUaotsSmnWwz7nVfevRpY2aXn7A8oPgIdCCSVAf0w5EiXK J7luQNibtnN6wIfYQMyU2CcdJ8r5SZLR5rKFLtIBt8xp8x1xBEJfAQRR9Y/nlgSCfLxD7MS M1okFO97MTjlTlLNCffwWj72DP+xnSAlEhOX+nkORhEX4MLoRexsrRNlNtrla7iZz5+Stba O7fn+CfERVeQ2Gu6qPveg== X-UI-Out-Filterresults: notjunk:1;V01:K0:V8TaNm8jtKY=:1MXvgqrOz9A0wiwp7zOmrm Njt/nmhpd5cyeZUbZPyDeWoAb+ePujY4B4/MGXjIS6bAEFLLKf5GG2S+tAQNt8wBQLfMWgFKb gbo3QgkicOkXru2CWD7/rr99hB21sMaRiNDNkWcaMz/mTOaJqxpAXmb72NQIZU8UVpqRAHq0o wW7QEyxEhO1S+RCRpm32CnyQwrQCIdsantsKT3q/imTtmG+0kPWTpLJq0hUE004HM2NdMPtgo YoSJh5PGquE87Rs7NQAny7o94AgjITOpQUnQ6LnEX7ifviPWdS1BZqKg0wapcaayQDx1OcC0C sX+YiOh6XsKD+5EqUcJNUZMEEOXfgyf5uZqEnhJV5tMDJzpDYMIIAvljnZPsR8+dgLRht3Zwu ulpMvAvpB9f4u4TK6WuAn3ASEVLENw3fUcmFHDgPCgNdzLkSr4HLw+4dYrMD/a9fxbhaluflu Xv1eQRDN/MwvGTuwpJvoO6RALwEkU7z1cGSqx61Rl26w4crsPJe1QmUFReP2DOP87ZwpVLgfW CIhLYX6nHjEScROx+lp3Lqz6gpxHMmdHmUYtG4f9Mn1LCJd9U75Xzyfba402gzNRT2FM0zrIA N+opMBZRJ4Ppx5KwfEfJsJT7c+43lPYErqUWbot4STHCcepfFZPVX7ciJFtw+cGa3Ll5zMkhD 0H0f/R10bGUq+fFIoIPD8brvLDvKAonM6DagxqH0cqNhkLIUYMQ1XclaGRV9sM4qWd61YcHNn pCVSU3y76SkTdCZ1hNka5YuOXHWLAFey+SVQc/dOlUEQqDdaqe5B2PnpFgarm7bcfE88Ekig X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114018 Archived-At: Hi Michael, * Michael Albinus [2017-08-13; 10:57]: > Gregor Zattler writes: >> I'm unable to visit /ftp:USER@MACHINE.com:~ >> although there is a line >> >> machine MACHINE.com port ftp login USER password "PASSWORD" >> >> in my ~/.authinfo.gpg >> >> with the correct infos instead of the capitalised parts. >> >> This is no configuration issue, since this: >> >> EMACS -Q -nw --eval "(setq auth-source-debug 'trivia)" --eval '(setq >> ange-ftp-netrc-filename "~/.authinfo.gpg")' /ftp:USER@MACHINE.com:~ >> >> does not work for emacs24, emacs25 and emacs-snapshot (emacs from >> git as of today) as values of EMACS. I'm asked by gpg-agent for >> my passphrase to the key which decrypts ~/.authinfo.gpg and >> actually I am able to visit this file and see it's decrypted >> content. > > I believe ange-ftp.el is not prepared to use auth-source.el. It is still > using good old ~/.netrc, with proper entries. Your entry above shall > seerve in ~/.netrc, without the "port" token. I copied the respective line to a new ~./netrc, deleted the "port ftp" part and redid the test with the above quoted command line: I was asked for the passphrase for the key to .authinfo.gpg and the problem was the same. Without .authinfo.gpg I'm asked for the ftp password but the problem keeps the same. When I reuse the ftp process in *ftp USER@MACHINE.com* issuing a ls command I get a "530 Please login with USER and PASS" which for me indicates that ange-ftp did not log me in, either did not try or it failed. I guess it's the former, since I'm able to log in manually in the *ftp USER@MACHINE.com* buffer: ftp> user USER user USER 331 Password required for USER Password: PASSWORD 230 User USER logged in Remote system type is UNIX. Using binary mode to transfer files. ftp> dir dir 200 PORT command successful 425 Unable to build data connection: Connection timed out ftp> Therefore ange-ftp should at least be able to log me in. Actually with argument -p I even see the directory listing. > I've just tried plain ftp in Emacs to "/ftp:anonymous@ftp.gnu.org:", > this works w/o problems on my machine. Could you try it also? Aha!: ftp> open ftp.gnu.org open ftp.gnu.org Connected to ftp.gnu.org. 220 GNU FTP server ready. 530 Please login with USER and PASS. 530 Please login with USER and PASS. SSL not available ftp> I then installed netkit-ftp from package inetutils-ftp. With this AND argument -p it works wonderfully, without -p ls won't finish -- but without ssl encrytion, meaning passwords go unencrypted over the wires. It's strange that ange-ftp does not work with ftp/ftp-ssl as in debian stretch since I'm able to use it manually (with -p): $ /usr/bin/ftp-ssl -p ftp.gnu.org Connected to ftp.gnu.org. 220 GNU FTP server ready. Name (ftp.gnu.org:grfz): anonymous 530 Please login with USER and PASS. 530 Please login with USER and PASS. SSL not available 230-Due to U.S. Export Regulations, all cryptographic software on this 230-site is subject to the following legal notice: 230- 230- This site includes publicly available encryption source code 230- which, together with object code resulting from the compiling of 230- publicly available source code, may be exported from the United 230- States under License Exception "TSU" pursuant to 15 C.F.R. Section 230- 740.13(e). 230- 230-This legal notice applies to cryptographic software only. Please see 230-the Bureau of Industry and Security (www.bxa.doc.gov) for more 230-information about current U.S. regulations. 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (208,118,235,20,96,200). 150 Here comes the directory listing. lrwxrwxrwx 1 0 0 8 Aug 20 2004 CRYPTO.README -> .message -rw-r--r-- 1 0 0 17864 Oct 23 2003 MISSING-FILES -rw-r--r-- 2 0 0 4178 Aug 13 2003 MISSING-FILES.README -rw-r--r-- 1 0 0 1962 Dec 22 2016 README -rw-r--r-- 1 0 0 405121 Oct 23 2003 before-2003-08-01.md5sums.asc -rw-r--r-- 1 0 0 238005 Aug 12 10:25 find.txt.gz drwxrwxr-x 316 0 3003 12288 May 17 04:15 gnu drwxrwxr-x 3 0 3003 4096 Mar 10 2011 gnu+linux-distros -rw-r--r-- 1 0 0 444682 Aug 12 10:25 ls-lrRt.txt.gz drwxr-xr-x 3 0 0 4096 Apr 20 2005 mirrors lrwxrwxrwx 1 0 0 11 Apr 15 2004 non-gnu -> gnu/non-gnu drwxr-xr-x 90 0 0 4096 Mar 31 2015 old-gnu lrwxrwxrwx 1 0 0 1 Aug 05 2003 pub -> . drwxr-xr-x 2 0 0 4096 Nov 08 2007 savannah drwxr-xr-x 2 0 0 4096 Aug 02 2003 third-party drwxr-xr-x 2 0 0 4096 Apr 07 2009 tmp drwxr-xr-x 2 0 0 4096 May 07 2013 video -rw-r--r-- 1 0 0 1112 Mar 22 17:32 welcome.msg 226 Directory send OK. ftp> It also works with the credentials to the ftp account to my webspace. So there seems to be no ftp client in debian/stretch compatible with ange-ftp which supports ssl :-( Do you think this merits a bug report against emacs? Thanks for your help, Gregor P.S.: Thanks also for your super fast action regarding the documentation bug about defunct ange-ftp-lovers mailing list.