all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: unable to visit /ftp:USER@MACHINE.com:~
Date: Mon, 14 Aug 2017 23:47:48 +0200	[thread overview]
Message-ID: <87wp65ddob.fsf@len> (raw)
In-Reply-To: <87shgu3ytq.fsf@detlef>

Hi Michael,
* Michael Albinus <michael.albinus@gmx.de> [2017-08-14; 18:21]:
> Gregor Zattler <telegraph@gmx.net> 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à, 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 successful


*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 




  reply	other threads:[~2017-08-14 21:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 16:23 unable to visit /ftp:USER@MACHINE.com:~ Gregor Zattler
2017-08-13  8:57 ` Michael Albinus
2017-08-13 10:56   ` Gregor Zattler
2017-08-14 16:21     ` Michael Albinus
2017-08-14 21:47       ` Gregor Zattler [this message]
2017-08-15  3:36         ` Michael Albinus
2017-08-16 10:01         ` Michael Albinus
2017-08-16 22:38           ` Gregor Zattler
2017-08-17 21:59             ` Gregor Zattler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp65ddob.fsf@len \
    --to=telegraph@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.