1

Say I have an org-link like [[file:/ftp:anonymous@ftp.gnu.org:]] to an FTP site that I would like to open in dired. Unfortunately, when opening the link, the following is prompted:

Opening FTP connection to ftp.gnu.org...

tramp-file-name-handler: FTP Error: OPEN request failed:

Upon trying it a second time, Emacs tends to crash.

There is also a buffer *ftp anonymous@ftp.gnu.org* which has the following content (sorry, partly in German):

Ung ltiger Hilfebefehl foo

open ftp.gnu.org

Verbindung mit ftp.gnu.org wurde hergestellt.

220 GNU FTP server ready.

Any idea what could be going on? (I'm under Windows with Emacs 25.1.90.1 (x86_64-w64-mingw32) using tramp 2.2.13.25.2 as is.)

  • Please mention your Tramp version and your Emacs version. – Drew Mar 31 '17 at 17:39
  • There should be a buffer *ftp anonymous@gnu.org*. Do you see something there? – Michael Albinus Mar 31 '17 at 17:58
  • @Drew I've added version info. – Timm Mar 31 '17 at 18:11
  • @MichaelAlbinus Yes, there is such a buffer! Sorry, I forgot to mention this. I've updated the question. Maybe tramp doesn't know how to properly use ftp.exe? In the PowerShell, ftp.exe works just fine. – Timm Mar 31 '17 at 18:29
0

Following the instructions given here, I've downloaded an old windows port of GNU ftp and then let ange-ftp know where it can find it:

(setq ange-ftp-ftp-program-name "c:/programs/ftp.exe")
  • I've corrected the link and it should be working now. – Timm Feb 28 '18 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.