help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp ssh Authentication Problem.


From: zwz
Subject: Re: Tramp ssh Authentication Problem.
Date: Wed, 11 Jun 2014 13:04:23 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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::<enter>, 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 <michael.albinus@gmx.de> writes:

> zwz <zhangweize@gmail.com> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]