all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp "Enter passphrase for key"
Date: Fri, 23 Jul 2010 12:34:12 +1000	[thread overview]
Message-ID: <87wrsnkjtn.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: mailman.1.1279807234.15903.help-gnu-emacs@gnu.org

Gary <help-gnu-emacs@garydjones.name> writes:

> I have ssh from the console setup to use authentication using
> keys. Works fine.
>
> Tramp on the other hand...
>
> Well, after the event I do see the requests to "Enter passphrase for
> key" but I am not actually prompted for them when I try to open a file
> on the remote host. Instead I am just asked for a login password. Any
> idea what is going on and how to fix it?
>
>

When you say you have ssh working fine from the console with kyes, I
assume you are using an ssh agent so that the first time you try to ssh
to a remote host, a window pops up asking for your ssh key passphrase.
Once entered, any further onnections work without having to re-enter
your pass key. Right?

How are you starting emacs? How are you starting the ssh agent?

My guess is that you are starting your ssh agent as part of your
xsession startup, but your starting emacs via a menyu option. If this is
the case, whay may be happening is that emacs is not running as a child
process of your xsession process. This will mean that it cannot access
the ssh agent. 

For the ssh agent to work, it must be started in a parent process of the
process you want to run ssh from. 

One way to verify this would be to run emacs from inside a console
rather than from a menu or launcher. Try the following 0

ssh to the remote host from a console session. If allworks correctly,
logout fromt he remote host and then type emacs at the prompt. Once
emacs is running, try using tramp and see if it works. If it does, then
this is almost certainly your problem, in which case, what you need to
do is see how to get the ssh agent running in a process that will be a
parent process tot he one that is launched when you execute emacs from
the menu or launcher. How you do this will depend on your distribution,
window manager and launcher setup. 

Tim

-- 
tcross (at) rapttech dot com dot au


       reply	other threads:[~2010-07-23  2:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1279807234.15903.help-gnu-emacs@gnu.org>
2010-07-23  2:34 ` Tim X [this message]
2010-07-22 14:00 tramp "Enter passphrase for key" Gary
2010-07-22 14:46 ` Michael Albinus
2010-07-22 14:48 ` Bastian Beischer
2010-07-22 16:48   ` Michael Albinus
2010-07-22 17:04   ` Gary .
2010-07-23  4:13     ` Michael Albinus

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrsnkjtn.fsf@puma.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.