* Tramp SSH method hangs after "found remote shell prompt"
@ 2010-08-26 17:44 dnquark
0 siblings, 0 replies; only message in thread
From: dnquark @ 2010-08-26 17:44 UTC (permalink / raw
To: help-gnu-emacs
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
^[[32mleo@matroskin ^[[33m~^[[0m $
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-26 17:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-26 17:44 Tramp SSH method hangs after "found remote shell prompt" dnquark
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.