From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zwz Newsgroups: gmane.emacs.help Subject: Re: Tramp ssh Authentication Problem. Date: Wed, 11 Jun 2014 13:04:23 +0800 Message-ID: <87wqcokpew.fsf@gmail.com> References: <53941A38.7040306@wilkesley.net> <53944CBE.5030107@wilkesley.net> <87lht7ig9n.fsf@gmx.de> <5395676A.1020102@wilkesley.net> <87ha3uih9h.fsf@gmx.de> <87a99lmrkm.fsf@gmail.com> <87oay15ce9.fsf@gmx.de> <8761k9m62z.fsf@gmail.com> <87egyx59zn.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402464353 32689 80.91.229.3 (11 Jun 2014 05:25:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2014 05:25:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 07:25:46 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wub2f-0003Mk-OD for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 07:25:45 +0200 Original-Received: from localhost ([::1]:43604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wub2f-0004au-B8 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 01:25:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wub2J-0004ai-I6 for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:25:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wub2D-0000l7-AR for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:25:23 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:32939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wub2D-0000kr-04 for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 01:25:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wub2A-0002wz-8y for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 07:25:14 +0200 Original-Received: from 115.236.9.86 ([115.236.9.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 07:25:14 +0200 Original-Received: from zhangweize by 115.236.9.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 07:25:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 77 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 115.236.9.86 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:gm9vJa2qye+eRNgKUuQLd3cBKOQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98139 Archived-At: Thank you for your hint. I now start Emacs with: SUDO_ASKPASS=/usr/bin/qt4-ssh-askpass emacs -q. And then I apply (setq tramp-verbose 10). With C-x C-f /sudo::, it prompts for user/password. After I input my account and password, it just hangs there... So I hit C-g, and I find hundreds lines of messages in the debug buffer. It seems to be some loop there. Here is just the last one loop of messages: ;; GNU Emacs: 24.3.1 Tramp: 2.2.6-24.3 -*- mode: outline; -*- ... 12:47:56.780848 tramp-process-one-action (5) # Call `tramp-action-process-alive' 12:47:56.781476 tramp-accept-process-output (10) # *tramp/sudo root@myhost* run 12:47:57.783128 tramp-accept-process-output (10) # exec sudo -u root -s -H -p Password: Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)" Sorry, try again. Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)" 12:47:57.784193 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell 12:47:57.785256 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.786172 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.795342 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:.? *\)\'" from remote shell 12:47:57.795957 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.796405 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.797148 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 12:47:57.797684 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.798120 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.799167 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%> ]*[#$%>] *\)\'" from remote shell 12:47:57.799645 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.800078 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.800613 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|.\)[^]#$%> ]*#?[]#$%>] *\(.\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell 12:47:57.801051 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.801485 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.802579 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell 12:47:57.803401 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.804152 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.804822 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 12:47:57.805331 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.805865 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.806335 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell 12:47:57.806783 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.807220 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.807667 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 12:47:57.847724 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.848247 tramp-get-connection-property (7) # check-remote-echo nil 12:47:57.848672 tramp-process-one-action (5) # Call `tramp-action-process-alive' 12:47:57.849177 tramp-accept-process-output (10) # *tramp/sudo root@myhost* run 12:47:58.482404 tramp-accept-process-output (3) # Opening connection for root@myhost using sudo...done 12:47:58.529563 tramp-file-name-handler (1) # Interrupt received in operation (expand-file-name /sudo:: nil) Michael Albinus writes: > zwz writes: > >> Now I start Emacs by SUDO_ASKPASS=openssh-askpass Emacs -q. >> There is no message in *tramp/sudo...* buffer, but it still does not >> prompt for my password. > > Apply (setq tramp-verbose 10) prior to the connection. There will be a > buffer *debug tramp/sudo...* which shall tell us what happens. > > Best regards, Michael.