From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: unable to visit /ftp:USER@MACHINE.com:~ Date: Sun, 13 Aug 2017 10:57:12 +0200 Message-ID: <871sofu9p3.fsf@detlef> References: <87378y2hvl.fsf@len> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1502614670 994 195.159.176.226 (13 Aug 2017 08:57:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 08:57:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 13 10:57:47 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 1dgoiP-0008IM-F5 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2017 10:57:45 +0200 Original-Received: from localhost ([::1]:53289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgoiU-0006fk-4T for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Aug 2017 04:57:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgohz-0006f0-6h for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 04:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgohw-00085w-4W for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 04:57:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:60345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgohv-00085O-Pj for help-gnu-emacs@gnu.org; Sun, 13 Aug 2017 04:57:16 -0400 Original-Received: from detlef.gmx.de ([178.20.95.72]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M6730-1dNlgm0DuM-00y7I5 for ; Sun, 13 Aug 2017 10:57:14 +0200 In-Reply-To: <87378y2hvl.fsf@len> (Gregor Zattler's message of "Fri, 11 Aug 2017 18:23:26 +0200") X-Provags-ID: V03:K0:esyB+RFk9KlRghQ9/0JbRzICH5bmWzlY9x2kK5oBEzu1fnER7H5 gJOvr/W6B49NzNS1U3TBEw6u36aBPLZtSThajxqZvJRVFVx/bp3iNXE1XO4PecieEYjq+7Q 5jfDaKUJLFO4NZ919SaSZq3gQ2HLRebeoZ+6YKplfsRE3VkmoqG7ZFhGxpiSnzqb0fIzEUf Nu4FXzXYoQbAEqI/fFhbQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:kQ3XYY+1Ey4=:L2QwAjswLvmvuBue57FCsn Jd1NltxEJI5PPXddKPyxnliEqJ/JTtoCRt+htOEFvfErnmsVVc4RJugpBn64Dg0wuTfXM6Q/s sFxTHaSvfYjNH6BTAFMIUHAZoDOeOiGwA67fmEbZJsj+hdQRKDgaD7eiG3GvpYOmQPfOVcU/+ IUpLTiCtJRTdZG2U+T9gZajwX1kB929N6POZS4GyC3yJgJmgvC/Q6EzJ7mY+dy4streR5DYRx 8cpACuYelhMqZRMo8x6QicCocGIMJrrjUlCjf3pnSQk8D7t9Nngj6aPDOMX6qUfX0uYrSEjCT lwYBdVIo8IJayNeU/9oX3eVfDyMf2ANod+aRkHxsD2NVyVU9bd+fDiUQW1X8crog5pB85WdOS a7Yh8AxgnJzo+Ofm+sC+rQW/LecAxRzowZ1bTW7ff09V/qw1styjSBwtnIJYQVOKfS8B6KL1v Pg5K3DuR0lbbsRjIW15SbFk+gk0Lb0ODve7FFxtEYGEGjrPG6N3sH8uJak3KFBwBadfoPRxbr aRw9vn1H2GUiOVmaZ0PFjS/DT1FMtmjSb0OrW4VnB8DzB7vibFfEAdn2QZCir6GAjUTXNvCZt UFqtK2Glvx74YoMs/XfKpV9aTqpwzxukmPN+VWai/DcjI+MNcIxY1AemnRSOKP8zGqT4tNJwb 7CZE9cgwHX+RzpNH2Y95R8z+9Qfx8pMJ0aSHu+O7YBnkgcBDf/K5uM2gZxoJG5BJmTQpBN4GZ 9U8n8Oy200F4kn58enddc04tAggw7U0upISFBxwsp/pvpWj3XRthx7azgNnD+5B+j6To7S1F X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 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:114017 Archived-At: Gregor Zattler 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.