all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tramp won't work for me
@ 2009-07-27 12:09 Olivier Sirven
  2009-07-28  3:51 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Sirven @ 2009-07-27 12:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hello there,

I've been struggling to get tramp to work on my computers but it seems I
just can't...
It keeps ending in failure with this last message:
# Waiting 30s for remote `/bin/sh' to come up...
$ [[Regexp `\([^>$][>$] *\|[^>$][>$] *\)\'' not found in 30 secs]]

Here is my configuration:
; default method to SSH
(setq tramp-default-method "ssh")
; use sudo for root@localhost
(add-to-list 'tramp-default-method-alist
             '("\\`localhost\\'" "\\`root\\'" "sudo"))
; set the prompt pattern
(setq tramp-shell-prompt-pattern "[^>$][>$] *")
(setq shell-prompt-pattern "[^>$][>$] *")
; make sure terminal is defined to dumb
(setq tramp-terminal-type "dumb")

Here is the full log of my last attempt:
# Opening connection for <USER>@<HOST> using scp...
# ssh <HOST> -l <USER> -e none
# Waiting for prompts from remote shell
# Waiting 60s for prompt from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:? *" from remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting (yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:? *" from remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting (yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:? *" from remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|Name or service not known\|\(?:Permission denied\|Sorry, try again\)\.\).*\|^.*\(Received signal [0-9]+\).*" from remote shell
# Looking for regexp "\(Are you sure you want to continue connecting (yes/no)\?\)\s-*" from remote shell
# Looking for regexp "\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Looking for regexp "" from remote shell
# Looking for regexp "^.*\([pP]assword\|passphrase\).*:? *" from remote shell
# Looking for regexp ".*ogin\( .*\)?: *" from remote shell
# Looking for regexp "[^>$][>$] *" from remote shell
# Found remote shell prompt.
# Initializing remote shell
# Sending command to remote shell: unset HISTORY
$ unset HISTORY
<USER>@<HOST>:~$ 
# Sending command to remote shell: unset correct
$ unset correct
<USER>@<HOST>:~$ 
# Sending command to remote shell: unset autocorrect
$ unset autocorrect
<USER>@<HOST>:~$ $ exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' /bin/sh
# Waiting 30s for remote `/bin/sh' to come up...
$ [[Regexp `\([^>$][>$] *\|[^>$][>$] *\)\'' not found in 30 secs]]

Do you have an idea to help me fixing this?

Thanks

-- 
Olivier


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tramp won't work for me
  2009-07-27 12:09 Tramp won't work for me Olivier Sirven
@ 2009-07-28  3:51 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2009-07-28  3:51 UTC (permalink / raw)
  To: Olivier Sirven; +Cc: help-gnu-emacs

Olivier Sirven <the.slaa@gmail.com> writes:

> Hello there,

Hi,

> I've been struggling to get tramp to work on my computers but it seems I
> just can't...
> It keeps ending in failure with this last message:
> # Waiting 30s for remote `/bin/sh' to come up...
> $ [[Regexp `\([^>$][>$] *\|[^>$][>$] *\)\'' not found in 30 secs]]

First of all, which Emacs/Tramp versions are you using? You know this by
"M-x emacs-version" and "M-x tramp-version".

> Here is my configuration:
> ; default method to SSH
> (setq tramp-default-method "ssh")

It might be not relevant for your problem, but your log indicates that
scp is still used.

> Here is the full log of my last attempt:
> # Opening connection for <USER>@<HOST> using scp...
> # ssh <HOST> -l <USER> -e none
> # Waiting for prompts from remote shell
> # Waiting 60s for prompt from remote shell
> # Looking for regexp "^.*\([pP]assword\|passphrase\).*:? *" from remote shell
> # Looking for regexp ".*ogin\( .*\)?: *" from remote shell
> # Looking for regexp "[^>$][>$] *" from remote shell

[...]

> Do you have an idea to help me fixing this?

Please set tramp-verbose to 6. After your next test run, we will need to
see the *tramp/ssh user@host* and *debug tramp/ssh user@host* buffers.
If you worry about private data, please send them to me off the list.

> Thanks

Best regards, Michael.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-28  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 12:09 Tramp won't work for me Olivier Sirven
2009-07-28  3:51 ` Michael Albinus

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.