Alex Rivera | Logout

Emacs: Tramp doesn't work

Asked 2011-08-05T09:52:54.147
45

I tried to open a remote file via Emacs via Tramp.

(require 'tramp)
(setq tramp-default-method "ssh")

I get a message from Emacs

Tramp: Waiting for prompts from remote shell

Emacs hung and did not respond to any action after that

Emacs was installed on Windows; the remote file was on a Linux machine.

Edit
Report

2 Answers

3

Had you checked Emacs wiki for solution? ssh is in PATH? It's also recommended to use plink on MS Windows - see section "Inline methods" in Tramp documentation

answered 2011-08-05T10:16:12.737
0

By the way -- if You need tramp to sudo -- You can actually sudo without tramp using sudoedit.

Currently I'm using this bash function:

erf () { SUDO_EDITOR="emacsclient -a emacs" sudoedit $@; }
answered 2012-10-01T14:07:59.893

Your Answer