使用GNU Emacs的Cygwin FTP不起作用
我正在Windows 7下使用GNU Emacs 24.0.95.1和最新的Tramp- 2.2.5-预处理。我正在尝试将以前版本的emacs用于 但是综合流浪汉的问题还是一样的 我正试图通过Emacs/Tramp/Ange FTP通过FTP连接我的网站 tramp是ange ftp的包装器。对于某些原因,只有被动模式 可用于我的网站进行FTP。因此,无法使用标准Windows ftp.exe,并且 重新命名它。对于ftp客户端,我尝试使用cygwin ftp 以下是我的emacs配置中的一部分:使用GNU Emacs的Cygwin FTP不起作用,emacs,ftp,cygwin,tramp,Emacs,Ftp,Cygwin,Tramp,我正在Windows 7下使用GNU Emacs 24.0.95.1和最新的Tramp- 2.2.5-预处理。我正在尝试将以前版本的emacs用于 但是综合流浪汉的问题还是一样的 我正试图通过Emacs/Tramp/Ange FTP通过FTP连接我的网站 tramp是ange ftp的包装器。对于某些原因,只有被动模式 可用于我的网站进行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@buffer中出现以下消息:
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.
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
在消息缓冲区中出现以下消息:
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.
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执行相同的任务时,会出现一些问题。
请告知。请添加解决方案作为答案,然后接受。解决方案