使用GNU Emacs的Cygwin FTP不起作用

时间:2012-04-27 05:27:35

标签: emacs ftp cygwin tramp

我在Windows 7下使用GNU Emacs 24.0.95.1和最新的Tramp - 2.2.5预。我正在尝试使用以前版本的emacs 整合Tramp但问题仍然相同。

我正在尝试通过FTP通过Emacs / Tramp / Ange-FTP连接我的网站 (tramp是ange-ftp的包装器)。对于一些resons只有被动模式 可以用于我的网站FTP。所以标准的Windows ftp.exe不能和我一起使用 重命名了。对于ftp客户端,我正在尝试使用cygwin ftp。

以下是我的emacs配置中的一部分:

 '(ange-ftp-ftp-program-name "c:/cygwin/bin/ftp.exe")
 '(ange-ftp-try-passive-mode t)
 ;'(ange-ftp-ftp-program-args (list "-i" "-n" "-g" "-v" "--prompt="))
;it is recommended in case of cygwin ftp used
 '(ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v" "--prompt" ""))
 '(tramp-debug-buffer t)
 '(setq tramp-verbose 10)
; '(tramp-default-method "ftp")
; '(tramp-default-method "pscp")
 '(tramp-default-method "ftp")
; '(tramp-ftp-method "ssh")
; '(tramp-ftp-method "sshx")
 '(tramp-debug-buffer t) ;May be delete. For debug only. Don't
understand how it work
; '(tramp-password-end-of-line "\r\n") ;just for experiment
; '(tramp-password-prompt-regexp)

我正在尝试以下步骤: 1. C-x C-f / @: 密码提示在emacs迷你缓冲区中 2.输入密码然后按 在 ftp @ 缓冲区中,将显示以下消息:

502 'PWD': command not implemented.
ftp> get ~ NUL
get ~ NUL
502 'PORT': command not implemented.
ftp> get ~ NUL
get ~ NUL
502 'PORT': command not implemented.
ftp> pwd
pwd
502 'PWD': command not implemented.
ftp> pwd
pwd
502 'PWD': command not implemented.

Messages 缓冲区中显示以下消息:

expanding ~... [2 times]
Getting PWD... [2 times]
expanding ~... [2 times]
Getting PWD... [2 times]
expanding ~... [2 times]
Getting PWD... [2 times]
expanding ~... [2 times]
Getting PWD... [2 times]
byte-code: Unable to obtain CWD

我可以使用相同的用户连接到此网站。来自cygwin的密码 FTP。但是,当我从emacs尝试相同的任务时,有一些问题。 请指教。

0 个答案:

没有答案