9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9p ssh-agent and unix keys
Date: Fri, 18 Sep 2015 13:30:10 +0200	[thread overview]
Message-ID: <CAOEdRO2JndAoT=ieDu7v5MmZLwd0YpZbqTnCAhEYdNi+S2rCUg@mail.gmail.com> (raw)
In-Reply-To: <CAOEdRO3UOCT3jHkDwswPG_tK7SsquU=BR36ike4=XDWZQTNwtw@mail.gmail.com>

On 9 September 2015 at 17:55, Rudolf Sykora <rudolf.sykora@gmail.com> wrote:
> Hello everyone,
>
> I have an ssh key, id_rsa, generated with the unix tools.
> I want to have it put into factotum and use it via p9p ssh-agent.
> I now the id_rsa key is ok, I can use it to get to the remote system.
>
> Now, I did this (in bash):
>
> ;killall ssh-agent
> ;killall factotum
> ;eval $(9 ssh-agent -e)
> ;factotum -n
> ;pemdecode 'RSA PRIVATE KEY' id_rsa | asn12rsa >rsa2
> ;cat rsa2 | 9p write -l factotum/ctl
>
> but when I now issue
> ;9 ssh-agent -l
>
> I get nothing (and really the ssh login doesn't work
> if the original id_rsa is removed).

for the record:

I found out the produced rsa2 key has to have a

service=ssh-rsa

added; only then 9 ssh-agent finds it in factotum.
Finaly, everything works.

Ruda



      reply	other threads:[~2015-09-18 11:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 15:55 Rudolf Sykora
2015-09-18 11:30 ` Rudolf Sykora [this message]

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='CAOEdRO2JndAoT=ieDu7v5MmZLwd0YpZbqTnCAhEYdNi+S2rCUg@mail.gmail.com' \
    --to=rudolf.sykora@gmail.com \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).