Windows 10 (64 bit), Emacs 25.1

If I want to remote connect by ssh to UNIX machine (Ubuntu) from my local machine (Windows 10) I do the next step:

  1. Run cmd
  2. Execute the next command

    ssh -oStrictHostKeyChecking=no mwallet@

Prompt password and as result I success connect to remote machine.

Here screenshot:

enter image description here

OK. Nice.

Now I want to do same on Emacs. So my steps:

  1. M-x shell
  2. Execute command

    ssh -oStrictHostKeyChecking=no mwallet@

But I get error:

Pseudo-terminal will not be allocated because stdin is not a terminal.

Here screenshot: enter image description here

  • M-x shell provides a dumb terminal, which isn't sufficient for Emacs. There's M-x term and M-x ansi-term which should be sufficient, but I doubt they would work on windows. – user12563 Dec 29 '17 at 12:41
  • I don't know Microsoft's ssh implementation, but usually you can call ssh -t -t ... in order to get a pseudoterminal. Yes, -t twice. – Michael Albinus Dec 30 '17 at 10:08
  • I try M-x term or M-x ansi-term , Emacs in minibuffer "Run program D:/Programs/emacs/libexec/emacs/25.1/x86_64-w64-mingw32/cmdproxy.exe" , press Enter ---> result error: Spawning child process: Invalid argument. – Alex Dec 30 '17 at 12:47
  • Well, it looks like Microsoft ssh does not support this ... – Michael Albinus Dec 30 '17 at 19:39
  • By Tramp mode I success connect to remote Unix machine. So, this is a one decision? – Alex Dec 30 '17 at 20:39

Your Answer

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

Browse other questions tagged or ask your own question.