views:

183

answers:

1

Similar to http://stackoverflow.com/questions/148578/ but that question doesn't address MS Windows.

Has anyone been able to use rsync instead of plink, either through cygwin or otherwise?

+1  A: 

Here is what worked for me with ssh; I just tried replacing ssh with rsync below, and it seemed to work:

NTEmacs can only use cygwin ssh-agent if launched from cygwin bash. This is not a problem; under Windows I currently use the following VB script to launch: WScript.CreateObject("WScript.Shell").Run "c:\cygwin\bin\bash -l -c /usr/bin/emacs", 0, false. For testing, simply symlink your emacs.exe to /usr/bin/emacs (if it's not already set up like that) and launch emacs from cygwin prompt.

This is what’s needed in .emacs

(require 'tramp)
(setq tramp-default-method "ssh")
(nconc (cadr (assq 'tramp-login-args (assoc "ssh" tramp-methods)))  '(("bash" "-i")))
(setcdr (assq 'tramp-remote-sh (assoc "ssh" tramp-methods)) '("bash -i"))
Leo Alekseyev
Cheers - I couldn't get it to work though, using the ssh method I get the following:tramp: Opening connection for [email protected] using nil...tramp: Found remote shell prompt.tramp: Initializing remote shelltramp: Waiting 30s for remote `/bin/sh' to come up...tramp: Setting up remote shell environmentapply: Couldn't `stty -inlcr -echo kill '^U'', see buffer `*tramp/plink [email protected]*'
EoghanM
It still refers to plink in the error message?.. that's strange. I'd try getting it to work with nothing other than those tramp config lines in .emacs, to make sure there's nothing else going on; use (setq tramp-verbose 10)(setq tramp-debug-buffer t) to get more information. I also have (setq tramp-password-end-of-line "\r\n"), but I don't think it's relevant.
Leo Alekseyev