tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp is misleaded by an error message at ftp login


From: Michael Albinus
Subject: Re: Tramp is misleaded by an error message at ftp login
Date: Fri, 16 Jan 2015 17:03:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

SENESI Stéphane <address@hidden> writes:

> Dear Tramp users and gurus

Hi Stéphane,

> New machine, new issues : my new 'archive' machine, Hendrix, issues an
> error message upon ftp connection, which drives Tramp in a strange
> state : albeit it is able to go ahead, and to forward the password
> which I typed in, and hence to successfully log in, it nevertheless
> issues an error message (which actually is a copy of the ftp error
> message, see below) and do not list the directory I was asking for
>
> Is there a simple way to bypass this problem ?

It is not Tramp, but ange-ftp.el which handles this.

> Here is the session transcript :
>
> ftp> open hendrix
> Connected to hendrix.meteo.fr.
> 220-# HPSS 7.4 Parallel FTP Daemon on hendrixftp0
> # coming from lxaster7.cnrm.meteo.fr
>
> 220 hendrixftp0 FTP server (HPSS 7.4 PFTPD V1.1.1 Mon Dec 1 22:56:04
> UTC 2014) ready.
> user "senesi" Turtle Power!
> 334 Using authentication type GSSAPI; ADAT must follow
> GSSAPI accepted as authentication type
> GSSAPI error major: Unspecified GSS failure. Minor code may provide
> more information
> GSSAPI error minor: No Kerberos credentials available
> GSSAPI error: initializing context
> GSSAPI authentication failed
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> 331 Password required for senesi.
> 230 User senesi logged in as address@hidden

I assume the line "334 Using authentication type GSSAPI; ADAT must follow"
is shown, right? In this case, you could try the patch

--8<---------------cut here---------------start------------->8---
*** /tmp/ediff29392kWo  2015-01-16 16:57:49.973510031 +0100
--- /home/albinus/src/emacs/lisp/net/ange-ftp.el        2015-01-16 
16:57:32.225196912 +0100
***************
*** 715,721 ****
  ;; security-aware FTP servers should respond to this with a 500 code,
  ;; which we ignore.
  (defcustom ange-ftp-skip-msgs
!   (concat "^200 \\(PORT\\|Port\\) \\|^331 \\|^150 \\|^350 \\|^[0-9]+ bytes 
\\|"
          "^Connected \\|^$\\|^Remote system\\|^Using\\|^ \\|Password:\\|"
          "^Data connection \\|"
          "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|"
--- 715,721 ----
  ;; security-aware FTP servers should respond to this with a 500 code,
  ;; which we ignore.
  (defcustom ange-ftp-skip-msgs
!   (concat "^200 \\(PORT\\|Port\\) \\|^33[14] \\|^150 \\|^350 \\|^[0-9]+ bytes 
\\|"
          "^Connected \\|^$\\|^Remote system\\|^Using\\|^ \\|Password:\\|"
          "^Data connection \\|"
          "^local:\\|^Trying\\|^125 \\|^550-\\|^221 .*oodbye\\|"
--8<---------------cut here---------------end--------------->8---

> Thanks.

Best regards, Michael.



reply via email to

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