help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unable to visit /ftp:address@hidden:~


From: Michael Albinus
Subject: Re: unable to visit /ftp:address@hidden:~
Date: Sun, 13 Aug 2017 10:57:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Gregor Zattler <telegraph@gmx.net> writes:

> Dear emacs users,

Hi Gregor,

> 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.

> Without setting ange-ftp-netrc-filename I'm not asked by
> gpg-agent but instead emacs asks me for the password of
> USER@MACHINE.com.
>
> but the result is otherwise the same (besides the line regarding
> authinfo.gpg):
>
> *Messages*:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Decrypting /home/grfz/.authinfo.gpg...done
> Opening FTP connection to ha01s001.org-dns.com...
> tramp-file-name-handler: FTP Error: OPEN request failed: open
> ha01s001.org-dns.com
>
> *ftp USER@MACHINE.com*
> ftp> open ha01s001.org-dns.com
> open ha01s001.org-dns.com
> Connected to ha01s001.org-dns.com.
> 220 ProFTPD 1.3.5b Server (ProFTPD) [212.144.99.144]
> 234 AUTH TLS successful
> [SSL Cipher ECDHE-RSA-AES256-GCM-SHA384]
> 200 PBSZ 0 successful
> 200 Protection set to Private
> [Encrypted data transfer.]
> ftp>
>
> If I then type ls in the *ftp USER@MACHINE.com* (Internal
> Ange-ftp:run) buffer I get:
>
> ftp> ls
> ls
> 530 Please login with USER and PASS
> ftp: bind: Address already in use
> ftp>
>
> This is on debian 9.1 (stretch) with ftp provided by package
> ftp-ssl:
>
> ~$ type -a ftp
> ftp is /usr/bin/ftp
> ~$ ls -l /usr/bin/ftp
> lrwxrwxrwx 1 root root 21 Jul  1 15:38 /usr/bin/ftp -> /etc/alternatives/ftp*
> ~$ ls -l /etc/alternatives/ftp
> lrwxrwxrwx 1 root root 16 Jul 1 15:38 /etc/alternatives/ftp ->
> /usr/bin/ftp-ssl*
> ~$ file /usr/bin/ftp-ssl
> /usr/bin/ftp-ssl: ELF 64-bit LSB shared object, x86-64, version 1
> (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
> for GNU/Linux 2.6.32,
> BuildID[sha1]=e7426e29e339b8432948fadea38cf0137e6b3e62, stripped
> ~$
>
> Any ideas how to make emacs/tramp connect to this ftp site?

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?

In your case, ftp-ssl is used. No idea whether it makes a difference, on
my machine (Ubuntu 17.04) I have

~/src/emacs> which ftp
/usr/bin/ftp
:~/src/emacs> ls -l /usr/bin/ftp
lrwxrwxrwx 1 root root 21 Mar 12  2012 /usr/bin/ftp -> /etc/alternatives/ftp
~/src/emacs> ls -l /etc/alternatives/ftp
lrwxrwxrwx 1 root root 19 Oct 24  2015 /etc/alternatives/ftp -> 
/usr/bin/netkit-ftp

> Thanks for your reading, Gregor

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]