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: Mon, 14 Aug 2017 23:47:48 +0200 Message-ID: <87wp65ddob.fsf@len> References: <87378y2hvl.fsf@len> <871sofu9p3.fsf@detlef> <87wp67pwgy.fsf@len> <87shgu3ytq.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502747331 17756 195.159.176.226 (14 Aug 2017 21:48:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2017 21:48:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 14 23:48:46 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 1dhNE5-0004H3-8O for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Aug 2017 23:48:45 +0200 Original-Received: from localhost ([::1]:57793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhNE9-0005Kc-2D for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Aug 2017 17:48:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhNDR-0005Io-5r for help-gnu-emacs@gnu.org; Mon, 14 Aug 2017 17:48:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhNDM-0002dr-9F for help-gnu-emacs@gnu.org; Mon, 14 Aug 2017 17:48:05 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:49979) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhNDL-0002cC-Vr for help-gnu-emacs@gnu.org; Mon, 14 Aug 2017 17:48:00 -0400 Original-Received: from len.workgroup ([84.189.141.212]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lj4xG-1dB3X02VPK-00dHTb; Mon, 14 Aug 2017 23:47:56 +0200 In-Reply-To: <87shgu3ytq.fsf@detlef> Mail-Followup-To: Michael Albinus , help-gnu-emacs@gnu.org X-Provags-ID: V03:K0:HL93ADLz8oSTggvQDAXISbU9mKQJSnd0MG/dJcpzbHNKy0GqBh+ QIwcfoTPJB8xZL4VLCFRpEakJu8uedyy3flmRQKLTt015UVnRz/tRP29YSHxVQ1maBCMLPI ygsLq0MZHTd+jiBbExZ+DZ/ZL8KApuZ07cjYX+QbzBtpQtGRzKBHKdL3I91V7tmzpw2V90w eXhhQnsT5Aw8HUr1GEGCw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZYNluRSj1Nw=:+NllDyRXxvJAQr/+8LJHl/ JgfH40V/nislz5xWeiDBK7DlnoPUL53X1awLlzErxiUikt+PsNDoC4k/qHAqlIkL+kkBGYOx4 c6zzk0zwM2HalubLSj5dVkkxykWhd1bfTvBieJqLMaLwARz2LtYFD6yN8QHz/zWg3KuN4zOn+ 6Eu/fB0QgJ6Dy3wLVlmL6iIy0jtz7Gk1ExVe2qEeaN80oQYRZdw10KfldJe1mmE4lwJ1b1mCH jJK1lUO4AIupYkzS6dy+eVMT0hsKHsuHR7C3oPDzPeC3cqBGvCQ2htLrCjUI92G/D8TTMs2X2 JIMMAf2hFhbqip1x68cs7J7ffcq98jTFi5QjA/QnVeFFv5NgjZmLbK7cQc+511x4e2UbjnsXe 78MNwVf3dv914zyNtVsWxd+oA3qf50AM9h7X8B82ajMkxMGfpld5aevcbr72BHyoUDElnZmO4 NC2kQwpKdsQtTvjkt863tjOgB1jKuGY31V7xjhZbHB4ihHai5BLI2vIiEq/CjyXsFbrix7mMn SZpwCmrprzW+Qn6+g4xNvz/iQjc9858ABD7Isj1m7Sk5hwt6VD6epc2rpgz7vv0uXPxE1RjeZ 0frG4BjQ51lSendALtohHAbExMo98gNc8OcYxN8X4Bn5BEHdvJQ7qR0sfO7yj2PE62WMKtvGF 58tMSwB/5UQ2ZFIQxq09H1on2rxjJIdisUbnEmkUyI/K02DnO40hD2f+ff1iq+A6Xz86s27CJ nh/5lXCEijN2wRLDTXvxNTQDrHnodqC4ztSWT8BiMvx9ZQjDnyO8Ijkc5Tcq/p0++8Bozlzp X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 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:114028 Archived-At: Hi Michael, * Michael Albinus [2017-08-14; 18:21]: > Gregor Zattler writes: >> 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? > > Too late :-) > > I've installed ftp-ssl on my machine, and played with it and > ange-ftp. Same problem accessing "/ftp:anonymous@ftp.gnu.org:". But > finally, I've got it running: > > 1. ftp-ssl writes an additional line ange-ftp is not aware of: > > SSL not available > > I've submitted a patch to the Emacs repo adding this message in > ange-ftp.el. I let ange-ftp just skip this line. > > 2. ftp-ssl has an additional feature to support readline/editline. This > comes in the way of ange-ftp batch processing. You must suppress it. > > There is `ange-ftp-ftp-program-args', which contains already useful > arguments. I've added "-e". And voil=C3=A0, with the resulting setting > '("-e" "-i" "-n" "-g" "-v") I have been able to access > "/ftp:anonymous@ftp.gnu.org:". Great, thanks. I checked it out. I had to add "-p" also, otherwise it would hang before showing the files listing. Now it works in case of a connection without SSL. With regard to my original use case (ftp access to my webspace) though it still does not work: *Messages* For information about GNU Emacs and the GNU system, type C-h C-a. Opening FTP connection to MACHINE.com...done Logging in as user USER@MACHINE.com... tramp-file-name-handler: FTP Error: USER request failed: 234 AUTH TLS succe= ssful *ftp USER@MACHINE.com* ftp> open MACHINE.com Connected to MACHINE.com. 220 ProFTPD 1.3.5b Server (ProFTPD) [212.144.99.144] user "USER" Turtle Power! 234 AUTH TLS successful [SSL Cipher ECDHE-RSA-AES256-GCM-SHA384] 200 PBSZ 0 successful 200 Protection set to Private [Encrypted data transfer.] ftp> 331 Password required for USER 230 User USER logged in Remote system type is UNIX. Using binary mode to transfer files. If I then enter buffer *ftp USER@MACHINE.com* and type "ls" it works there, but something is still missing for working fully automated: ftp> ls 227 Entering Passive Mode (212,144,99,144,223,133). 150 Opening BINARY mode data connection for file list drwxr-x--- 2 USER psacln 4096 Apr 27 2015 error_docs drwxr-x--- 3 USER psaserv 4096 Aug 11 15:31 httpdocs drwx------ 2 USER root 4096 Aug 14 03:40 logs drwx------ 3 USER psacln 4096 Aug 11 16:20 private -rw-r--r-- 1 USER psacln 10 Aug 13 09:47 test.txt 226 Transfer complete ftp> The culprit is probably the "234 AUTH TLS successful" line, since in ange-ftp.el, there is no "234" as part of a regex. This is now perhaps a problem specific to "ProFTPD 1.3.5b Server (ProFTPD)". I could provide you with credentials if you are interested in this. Regardless of this last issue: Thanks again for your fast response/fix. Ciao; Gregor=20