[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp on Windows XP
Re: Tramp on Windows XP
Mon, 08 Aug 2005 12:55:25 +0200
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (darwin)
Please try PuTTY (or the plink tool that comes with it). There is a
Tramp method "plink", so you only need to add the PuTTY directory to
%PATH% and then C-x C-f /plink:address@hidden:/some/file RET.
The problem is that Windows does not have pseudo ttys. So Emacs does
not use them for subprocesses. And when ssh sees that a pseudo tty is
not used, then it won't allocate one on the remote end. And this
causes the remote end to think it is talking to a program, and to omit
printing the shell prompt. But the shell prompt is very important for
Doing "ssh -t -t" (yes, twice), it is sometimes possible to force ssh
to allocate a pseudo tty on the remote end, but apparently this does
not work reliably on Windows.
Joel Gwynn <address@hidden> writes:
> Hmm. eshell certainly does hang. All I get is this message:
> Pseudo-terminal will not be allocated because stdin is not a terminal.
> What's that all about?
> On 6/11/05, John L. Utz III <address@hidden> wrote:
>> I cant answer why emacs doesnt do the right thing in this case, and i am
>> surprised that you didnt get the imfamous 'terminal is not a TTY' ( google
>> it :-( )
>> however, the good news is that tramp works swimmingly with the plink from
>> C-x C-f
>> i am going from an XPProSp2 box to various linuxen.
>> if you are trying to go to another XP box or from unixy-thang to XP (reverse
>> of my use case) then i have no idea if that will work.
>> another intermediate testing step would be to try and run your ssh session in
>> eshell (Esc-x eshell) and see if it works or hangs....bet it hangs...
>> At Sat, 11 Jun 2005 12:19:57 -0400,
>> Joel Gwynn wrote:
>> > Well, it seems like many people have this problem, but I haven't found
>> > a solution to my incarnation.
>> > I'm running emacs 21.3.1 on Windows XP with Tramp 2.1.3, and cygwin,
>> > not sure which version. The relevant lines in my .emacs file are as
>> > follows:
>> > (add-to-list 'load-path "/emacs-21.3/tramp/lisp/")
>> > ;; for Emacs
>> > (add-to-list 'Info-default-directory-list "c:/emacs-21.3/tramp/info/")
>> > ;; for XEmacs
>> > ;; (add-to-list 'Info-directory-list "~/emacs/tramp/info/")
>> > (require 'tramp)
>> > (setq tramp-debug-buffer t)
>> > (nconc (cadr (assq 'tramp-login-args (assoc "ssh" tramp-methods)))
>> > '(("bash" "-i")))
>> > (setcdr (assq 'tramp-remote-sh (assoc "ssh" tramp-methods))
>> > '("bash -i"))
>> > When I try to connect like so:
>> > Ctrl-x Ctrl-f /address@hidden:/mypath
>> > I get the message:
>> > Tramp: Waiting 60s for prompt on remote shell
>> > In my *tramp/ssh buffer, there is this command line:
>> > ssh myhost.com -l myname -e none bash -i || exit
>> > In my *debug tramp/ssh buffer, I get this:
>> > Sending command `ssh myhost.com -l myname -e none bash -i || exit'
>> > # Waiting for prompts from remote shell
>> > # Waiting 60s for prompt from remote shell on host qtik.com
>> > If I paste that line into a dos prompt, I get a password prompt, which
>> > when I enter my password, I get logged in.
>> > I can do this. Why can't emacs?
>> > TIA
>> > Joel
>> > _______________________________________________
>> > Tramp-devel mailing list
>> > address@hidden
>> > http://lists.gnu.org/mailman/listinfo/tramp-devel
> Tramp-devel mailing list
|[Prev in Thread]
||[Next in Thread]|
- Re: Tramp on Windows XP,
Kai Großjohann <=