Adding this for anyone who runs into this problem.

I use SSH mode for emacs (ssh-el) on Windows and it just hangs there without connecting sometimes, usually after a crash.

  • It's probably not relevant to the issue described here, but if you'd rather run your ssh sessions inside ansi-term you might find the my-ssh command at emacs.stackexchange.com/a/18678 useful as an alternative to ssh-el. – phils Jun 16 '16 at 4:10

Open task manager and quit all ssh.exe processes you see.

When emacs crashes on Windows and it's using ssh-el the ssh process keeps running and blocks emacs from connecting. Rebooting would probably also work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.