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: Tue, 10 Jun 2014 18:06:44 +0800 Message-ID: <8761k9m62z.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402396100 639 80.91.229.3 (10 Jun 2014 10:28:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2014 10:28:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 10 12:28:13 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 1WuJHo-0001cy-Em for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jun 2014 12:28:12 +0200 Original-Received: from localhost ([::1]:38095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuJHo-0007bF-2M for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jun 2014 06:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuJHU-0007b6-W4 for help-gnu-emacs@gnu.org; Tue, 10 Jun 2014 06:27:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuJHK-0000Be-LP for help-gnu-emacs@gnu.org; Tue, 10 Jun 2014 06:27:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuJHK-0000BI-D3 for help-gnu-emacs@gnu.org; Tue, 10 Jun 2014 06:27:42 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WuJHG-00018X-Cv for help-gnu-emacs@gnu.org; Tue, 10 Jun 2014 12:27:38 +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 ; Tue, 10 Jun 2014 12:27:38 +0200 Original-Received: from zhangweize by 115.236.9.86 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2014 12:27:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 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:q9FMlSacUAcAbJ3KRAjFLhHBQ38= 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:98121 Archived-At: Thank you, Michael. I use sudo on my local machine with C-x C-f /sudo:: 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. Michael Albinus writes: > zwz writes: > >> Nice. Can you give the link of your hints? > > It's in the FAQ section of the Tramp manual. Eval > > (info "(tramp) Frequently Asked Questions") > >> Also, I got the problem when I tried to use tramp: >> sudo: no tty present and no askpass program specified > > Well, how to you use sudo? From your local machine, or do you hop onto > another machine (via Tramp), and apply sudo there? > >> I have installed openssh-askpass. > > Usually, you could instruct sudo to use your askpass program by setting > the environment variable $SUDO_ASKPASS. See the man page of sudo(8). > > Best regards, Michael.