Cygwin FTP with GNU Emacs doesn't work

我怕爱的太早我们不能终老 提交于 2019-12-12 05:14:16

问题


I am using GNU Emacs 24.0.95.1 under Windows 7 with latest Tramp - 2.2.5-pre. I am trying to use previous version of emacs with integrated Tramp but the issue still the same.

I am trying to connect my website via FTP via Emacs/Tramp/Ange-FTP (tramp is a wrapper for ange-ftp). For some resons only Passive mode can be used for my website for FTP. So standard Windows ftp.exe can not be used and I renamed it. For ftp client I am trying to use cygwin ftp.

Here is a part from my emacs config:

 '(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)

I am trying the following steps: 1. C-x C-f /@: Password prompts in emacs minibuffer 2. Enter password and press In the ftp @ buffer the following messages appeares:

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.

In the Messages buffer the following messages appeares:

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

I can connect to this site with the same user & password from cygwin ftp. But when I am trying the same task from emacs there some issues. Please advise.

来源:https://stackoverflow.com/questions/10345196/cygwin-ftp-with-gnu-emacs-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!