This section is incomplete. Please share your solutions.
ssh works only with a Cygwin version of Emacs. To
check for compatibility: type M-x eshell RET, and start
ssh test.host RET. Incompatibilities trigger this
Pseudo-terminal will not be allocated because stdin is not a terminal.
Some older versions of Cygwin’s
ssh work with the
sshx access method. Consult Cygwin’s FAQ at
https://cygwin.com/faq/ for details.
On the Emacs
Wiki it is explained how to use the helper program
fakecygpty to fix this problem.
When using the scpx access method, Emacs may call
scp with MS Windows file naming, such as c:/foo. But
the version of
scp that is installed with Cygwin does not
know about MS Windows file naming, which causes it to incorrectly look
for a host named ‘c’.
A workaround: write a wrapper script for scp to convert Windows file names to Cygwin file names.
When using the
ssh-agent on MS Windows for password-less
interaction, ssh methods depend on the environment variable
SSH_AUTH_SOCK. But this variable is not set when Emacs is
started from a Desktop shortcut and authentication fails.
One workaround is to use an MS Windows based SSH Agent, such as Pageant. It is part of the Putty Suite of tools.
The fallback is to start Emacs from a shell.