unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Olivier Sirven <the.slaa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Tramp won't work for me
Date: Mon, 27 Jul 2009 14:09:42 +0200	[thread overview]
Message-ID: <m2eis2ba49.fsf@basezf.deborah> (raw)

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


             reply	other threads:[~2009-07-27 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 12:09 Olivier Sirven [this message]
2009-07-28  3:51 ` Tramp won't work for me Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eis2ba49.fsf@basezf.deborah \
    --to=the.slaa@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).