[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unable to visit /ftp:address@hidden:~
From: |
Gregor Zattler |
Subject: |
Re: unable to visit /ftp:address@hidden:~ |
Date: |
Mon, 14 Aug 2017 23:47:48 +0200 |
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
- unable to visit /ftp:address@hidden:~, Gregor Zattler, 2017/08/11
- Re: unable to visit /ftp:address@hidden:~, Michael Albinus, 2017/08/13
- Re: unable to visit /ftp:address@hidden:~, Gregor Zattler, 2017/08/13
- Re: unable to visit /ftp:address@hidden:~, Michael Albinus, 2017/08/14
- Re: unable to visit /ftp:address@hidden:~,
Gregor Zattler <=
- Re: unable to visit /ftp:address@hidden:~, Michael Albinus, 2017/08/14
- Re: unable to visit /ftp:address@hidden:~, Michael Albinus, 2017/08/16
- Re: unable to visit /ftp:address@hidden:~, Gregor Zattler, 2017/08/16
- Re: unable to visit /ftp:address@hidden:~, Gregor Zattler, 2017/08/17