help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp SSH method hangs after "found remote shell prompt"


From: dnquark
Subject: Tramp SSH method hangs after "found remote shell prompt"
Date: Wed, 08 Dec 2010 15:26:23 -0000
User-agent: G2/1.0

I am running Windows; Tramp used to work with Emacs 23.1, provided
emacs was launched from cygwin shell and inherited the cygwin
environment.  It broke in Emacs 23.2.  Can someone tramp-savvy take a
peek at the debug output and help me figure out what's going on?...  A
few suspicious things: Tramp wants to use cmd.exe; somehow it fails to
bring up the local shell when I try to set tramp-encoding-shell to
bash.exe.  Not sure if that matters.  In addition, the default ssh
method gives an error  "bash: no job control in this shell".  However,
using sshx method (which starts ssh with a -t flag and avoids this
error) makes Tramp hang in the same exact place.

Here are some relevant parts from the debug log:


;; GNU Emacs: 23.2.1 Tramp: 2.1.18-23.2 -*- mode: outline; -*-
09:39:09.031000 tramp-maybe-open-connection (3) # Opening connection
for matroskin using ssh...
09:39:09.031000 tramp-maybe-open-connection (6) # C:\WINDOWS
\system32\cmd.exe
09:39:09.031000 tramp-maybe-open-connection (3) # Waiting 60s for
local shell to come up...
09:39:09.171000 tramp-wait-for-regexp (6) #
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\DOCUME~1\Leo\LOCALS~1\Temp>
09:39:09.218000 tramp-maybe-open-connection (3) # Sending command `ssh
matroskin   -q -e none bash -i && exit || exit'
09:39:09.218000 tramp-send-command (6) # ssh matroskin   -q -e none
bash -i && exit || exit
09:39:09.218000 tramp-process-actions (3) # Waiting for prompts from
remote shell
09:39:09.265000 tramp-process-one-action (5) # Looking for regexp "\
(.*ogin\( .*

....snip.....

09:39:12.843000 tramp-process-one-action (5) # Looking for regexp "\
(^[^#$%>
]*[#$%>] *\)\'" from remote shell
09:39:12.843000 tramp-process-one-action (5) # Call `tramp-action-
succeed'
09:39:12.843000 tramp-process-actions (6) #
ssh matroskin   -q -e none bash -i && exit || exit
bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
leo@matroskin ~ $
09:39:12.843000 tramp-maybe-open-connection (3) # Found remote shell
prompt on `matroskin'
09:39:12.843000 tramp-send-command (6) # exec env ENV=''
PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/bash -i

.....and this is where it hangs.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]