From: Bastian Beischer <bastian.beischer@rwth-aachen.de>
To: Gary <help-gnu-emacs@garydjones.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: tramp "Enter passphrase for key"
Date: Thu, 22 Jul 2010 16:48:20 +0200 [thread overview]
Message-ID: <AANLkTinnR7kEe2PMsgteM3zLD90iqxXucUdfc6M763gF@mail.gmail.com> (raw)
In-Reply-To: <i29itf$trl$1@dough.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1875 bytes --]
What are your values of
M-x getenv SSH_AGENT_PID
M-x getenv SSH_AUTH_SOCK
?
I assume that your problem is that these variables are only set in terminals
but not in programs started from GNOME/KDE/... (where .bashrc and the like
are not sourced).
Hence, tramp will not know anything about the ssh-agent and prompt you for
the password. In that case you should try to find a way to make your
ssh-agent known to the session.
For example, I am using KDE, and there is a script in /etc/kde/env/ with the
following content:
$ cat /etc/kde/env/agent-startup.sh
# Agents startup file
#
# This file is sourced at kde startup, so that
# the environment variables set here are available
# throughout the session.
# Uncomment the following lines to start gpg-agent
# and/or ssh-agent at kde startup.
# If you do so, do not forget to uncomment the respective
# lines in KDEDIR/shutdown/agent-shutdown.sh to
# properly kill the agents when the session ends.
if [ -x /usr/bin/gpg-agent ] && [ -z "${GPG_AGENT_INFO}" ]; then
eval "$(/usr/bin/gpg-agent --daemon --pinentry-program
/usr/bin/pinentry-qt4)"
fi
#
if [ -x /usr/bin/ssh-agent ] && [ -z "${SSH_AGENT_PID}" ]; then
eval "$(/usr/bin/ssh-agent -s)"
fi
and a similar script to shut the agents down.
Cheers
Bastian
On Thu, Jul 22, 2010 at 4:00 PM, Gary <help-gnu-emacs@garydjones.name>wrote:
> 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?
>
>
>
--
Bastian Beischer
I. Physikalisches Institut B (RWTH Aachen)
Sommerfeldstr. 14
52074 Aachen
GERMANY
Office: 28-C-203
Phone: +49 241 - 8027205
[-- Attachment #2: Type: text/html, Size: 2705 bytes --]
next prev parent reply other threads:[~2010-07-22 14:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2010-07-22 16:48 ` Michael Albinus
2010-07-22 17:04 ` Gary .
2010-07-23 4:13 ` Michael Albinus
[not found] <mailman.1.1279807234.15903.help-gnu-emacs@gnu.org>
2010-07-23 2:34 ` Tim X
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=AANLkTinnR7kEe2PMsgteM3zLD90iqxXucUdfc6M763gF@mail.gmail.com \
--to=bastian.beischer@rwth-aachen.de \
--cc=help-gnu-emacs@garydjones.name \
--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.