Suresh Payankannur

Saturday, August 6, 2011

Cygwin with Tramp

I havent' used tramp for a while. When tried with an older .emacs configuration, emacs was hanging with the message 'tramp waiting for prompts from remote shell'. I am using GNU Emacs version 23.1.1 and tramp 2.1.15 from a latest Cygwin environment and trying to connect to a Ubuntu VM. Looks like the shell command prompt is not being recognized by tramp.

As a quick solution, I ditched the standard route of using ange-ftp and went for plink. This is available for download from the Putty distribution. By making the following change in my .emacs, everything worked fine.

(require 'tramp)
(setq tramp-verbose 10)
(setq tramp-debug-buffer t)
(setq tramp-disable-ange-ftp)
(setq tramp-default-method "plink")
(setq tramp-ftp-method "scp")
(setq tramp-default-user "user-name")
(setq tramp-default-host "host-name-or-ip")


Post a Comment

Blog Archive

Scroll To Top