Friday, September 04, 2015

Remote Editing of Files with Emacs Through a Proxy on Windows 7

I've always loved emacs for editing files on remote machines.  I started with Ange-ftp, then tramp,  and then plink.  Now with blocked ports and a proxy to navigate, I've upgrade to plinkx.
With plinkx you can fiddle with the setting in PuTTY to get everything perfect and then use the PuTTY saved session in Emacs.
This is much easier than trying to set all the communication protocols in lisp.
Here's some setup code from my .emacs file.  The tricky part is that the tramp-default-host is the name of your saved session.

             (require 'tramp)
             (setq tramp-default-method "plinkx")
             (setq tramp-default-user "myUserName")
             (setq tramp-default-host "f");;the Saved Session from PuTTY.  See below.
             (setq tramp-verbose 10)
             (setq tramp-debug-buffer t)
             (setq password-cache-expiry nil)

Now it works great!