From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: help-gnu-emacs@gnu.org
Subject: Re: tramp and ssh-key passphrase
Date: Fri, 18 Mar 2016 16:21:11 -0400 [thread overview]
Message-ID: <87oaaba66g.fsf@yale.edu> (raw)
In-Reply-To: 87a8lvfufj.fsf@heimdali.yagibdah.de
lee writes:
> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>
>> Try setting up an SSH agent. That way you just have to enter
>> the passphrase once per session.
>
> Thanks, I tried, and it only says
>
> ,---- | Could not add card ".ssh/[...]": agent refused operation
> `----
You are supposed to have a key in your .ssh, if not do something
like
#+BEGIN_SRC shell
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -o -a 100
#+END_SRC
You would then have to copy the content of id_rsa.pub into
~/.ssh/authorized_keys of the machine you want to login onto.
> when I try to add a key, so I killed it. The agent had been
> started with
>
> ,---- | eval $(ssh-agent) `----
>
> in my .xinitrc.
>
> This is awful because it requires me to exit the X session to
> get the ssh-agent to work. I won't do much experimenting on
> this ...
You should only start the ssh-agent once per session, that is the
whole point of it. Actually it should start automatically.
You can try:
#+BEGIN_SRC shell
killall ssh-agent
eval `ssh-agent -s`
#+END_SRC
Then do
#+BEGIN_SRC shell
ssh-add
#+END_SRC
right after you login. It will ask for the password of your id_rsa
key, and then let you connect for the rest of your session.
Best,
--
Jorge.
next prev parent reply other threads:[~2016-03-18 20:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6191.1456683386.843.help-gnu-emacs@gnu.org>
2016-02-29 7:24 ` tramp and ssh-key passphrase Loris Bennett
2016-03-18 19:38 ` lee
2016-03-18 20:21 ` Jorge A. Alfaro-Murillo [this message]
2016-02-28 14:28 lee
2016-02-29 9:15 ` Michael Albinus
2016-02-29 12:49 ` Peter Münster
2016-03-18 19:39 ` lee
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oaaba66g.fsf@yale.edu \
--to=jorge.alfaro-murillo@yale.edu \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).