From: Miles Bader <miles@lsi.nec.co.jp>
Subject: tramp again
Date: 22 Aug 2002 10:12:30 +0900 [thread overview]
Message-ID: <buo65y3ae81.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
It's been a while since I last tried tramp, so I checked to see if I
could a simple `su' today. Here's what happened.
First, I tried `/su:localhost:/etc', and tramp told me `you must use a
username with the `su' method'. This seems wrong -- 99% of the time,
when someone su's they want to su to root; it's annoying enough that
you have to type `localhost', but why should you have to type `root' too?
Okay, anyway, I next tried `/su:root@localhost:/etc'. Tramp asked me
for a password, and I gave the root password. Then tramp appeared to
hang, displaying the message:
Looking for pattern \(Store key in cache\? (y/n)\)\s-*
I guess it was actually looping; here's the *Messages* contents:
tramp: Opening connection for `root' using `su'...
tramp: Processing actions
tramp: Waiting 60s for prompt from remote shell
tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
Password: .......
tramp: Looking for pattern .*ogin: *
tramp: Looking for pattern ^\(([^) ]*)\|[^> ]*[>]\)\s-*
tramp: Looking for pattern ^.*\(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]+\).*
tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
tramp: Looking for pattern .*ogin: *
tramp: Looking for pattern ^\(([^) ]*)\|[^> ]*[>]\)\s-*
tramp: Looking for pattern ^.*\(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]+\).*
tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
tramp: Looking for pattern .*ogin: *
tramp: Looking for pattern ^\(([^) ]*)\|[^> ]*[>]\)\s-*
tramp: Looking for pattern ^.*\(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]+\).*
tramp: Looking for pattern \(Are you sure you want to continue connecting (yes/no)\?\)\s-*
tramp: Looking for pattern \(Store key in cache\? (y/n)\)\s-*
Quit
Here's the contents of the `*tramp/su root@localhost*' buffer:
mcspd15:~#
[I indented it; it's actually flush with the left margin]
Has tramp been fixed to not use `shell-prompt-pattern' incorrectly yet?
Maybe that's the problem.
I did (setq shell-prompt-pattern nil) and tried again. This time, it
hung displaying:
Waiting 30s for remote `/bin/sh' to come up...
Not sure what was wrong this time; the contents of the `*tramp...'
buffer were the same as before, but *Messages* showed:
tramp: Opening connection for `root' using `su'...
tramp: Processing actions
tramp: Waiting 60s for prompt from remote shell
tramp: Looking for pattern ^.*\([pP]assword\|passphrase.*\):
Password: .......
tramp: Looking for pattern .*ogin: *
tramp: Looking for pattern nil
tramp: Found remote shell prompt.
tramp: Waiting 30s for remote `/bin/sh' to come up...
Quit
Does tramp seem this fragile for anyone else?
-Miles
--
I'd rather be consing.
next reply other threads:[~2002-08-22 1:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-22 1:12 Miles Bader [this message]
2002-08-22 8:13 ` tramp again Andreas Schwab
2002-08-22 12:19 ` Robert J. Chassell
2002-08-22 15:55 ` Kai Großjohann
2002-08-22 17:00 ` Robert J. Chassell
2002-08-22 17:38 ` Kai Großjohann
2002-08-22 15:31 ` Kai Großjohann
2002-08-23 1:36 ` Miles Bader
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=buo65y3ae81.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=miles@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).