From: Ian Barton <lists@wilkesley.net>
To: help-gnu-emacs@gnu.org
Subject: Tramp ssh Authentication Problem.
Date: Sun, 08 Jun 2014 09:09:28 +0100 [thread overview]
Message-ID: <53941A38.7040306@wilkesley.net> (raw)
I am having some problems with Tramp logging in to remote servers. In
my ~/.ssh/config I have:
Host blacky.wilkesley.net
IdentityFile ~/.ssh/id_rsa_blacky_linode
Host wilkesley.org
IdentityFile ~/.ssh/id_rsa_linode_ian
I can login to either host using ssh wilkesley.org or ssh
blacky.wilkesley.org. However, tramp logs in OK to wilkesley.org, but
*not* to blacky.wilkesley.net.
If I use the following minimal init file:
(setq tramp-shell-prompt-pattern "^[^$>\n]*[#$%>]*\\(\[[0-9;]*[a-zA-Z]
*\\)*")
(eval-after-load 'tramp '(setenv "SHELL" "/bin/bash"))
(setq tramp-default-method "ssh")
(setq tramp-verbose 10)
I get the following in the Tramp log when I try to login to
blacky.wilkesley.net:
08:52:15.819432 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
08:52:15.819650 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.819878 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.820211 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
08:52:15.820469 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.820697 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.820936 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
08:52:15.821198 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.821426 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.821635 tramp-process-one-action (5) # Looking for regexp "\(^[^$>
]*[#$%>]*\([[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
08:52:15.821866 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.822092 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.822339 tramp-process-one-action (5) # Looking for regexp
"\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'"
from remote shell
08:52:15.822574 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.822799 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.823010 tramp-process-one-action (5) # Looking for regexp
"\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return
cancels connectio\)n)\)\s-*\)\'" from remote shell
08:52:15.823245 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.823502 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.823690 tramp-process-one-action (5) # Looking for regexp
"\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
08:52:15.823906 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.824101 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.824277 tramp-process-one-action (5) # Looking for regexp
"\(\)\'" from remote shell
08:52:15.824489 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.838558 tramp-get-connection-property (7) # check-remote-echo nil
08:52:15.838773 tramp-process-one-action (5) # Call
`tramp-action-process-alive'
08:52:15.838968 tramp-accept-process-output (10) # *tramp/ssh
blacky.wilkesley.net* run
08:52:16.757812 tramp-accept-process-output (10) #
#$ Last login: Sun Jun 8 08:51:51 2014 from 46.33.134.31
08:52:16.758055 tramp-process-one-action (5) # Looking for regexp
"\(.*ogin\( .*\)?: *\)\'" from remote shell
08:52:16.758317 tramp-get-connection-property (7) # check-remote-echo nil
08:52:16.758556 tramp-get-connection-property (7) # check-remote-echo nil
08:52:16.758985 tramp-process-one-action (5) # Looking for regexp
"\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
08:52:16.759223 tramp-get-connection-property (7) # check-remote-echo nil
08:52:16.759454 tramp-get-connection-property (7) # check-remote-echo nil
08:52:16.759688 tramp-process-one-action (5) # Looking for regexp
"\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification
failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o
supported authentication methods left to try!\)\|Permission
denied\|\(?:Sorry, try again\|Timeout, server not
responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
For some reason it looks as thought the host key verification is
failing, but I can't see why.
Ian.
next reply other threads:[~2014-06-08 8:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-08 8:09 Ian Barton [this message]
2014-06-08 11:45 ` Tramp ssh Authentication Problem Ian Barton
2014-06-08 15:15 ` Michael Albinus
2014-06-09 7:51 ` Ian Barton
2014-06-09 9:06 ` Michael Albinus
2014-06-10 2:22 ` zwz
2014-06-10 9:42 ` Michael Albinus
2014-06-10 10:06 ` zwz
2014-06-10 10:34 ` Michael Albinus
2014-06-11 5:04 ` zwz
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=53941A38.7040306@wilkesley.net \
--to=lists@wilkesley.net \
--cc=help-gnu-emacs@gnu.org \
--cc=ian@manor-farm.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).