Search code examples
windowsemacsemacs24plinktramp

Using GNU Emacs 24 's TRAMP with plink.exe on Windows 8


Being forced to work on Windows, I'm setting up Emacs.

I want to use TRAMP with plink, here is my config :

(add-to-list 'exec-path "C:/bin")

(require 'tramp)
(set-default 'tramp-auto-save-directory "C:/Users/username/AppData/Local/Temp")
(set-default 'tramp-default-method "plink")

(load-theme 'tango-dark t)

With plink.exe in C:\bin, but when I try to connect I get :

M-x /ssh:login@host:
'ssh' is not recognized as an internal or external command

So TRAMP doesn't understand it should be using plink ?


Solution

  • By using a connection string starting with /ssh: you are telling TRAMP to use an SSH connection instead of a Plink connection. Using /plink: should solve the problem.