Re: Windows, Net::SSH: how do I use a private key (w / passw
- From: Luis Lavena <luislavena@xxxxxxxxx>
- Date: Tue, 15 Apr 2008 16:42:26 -0700 (PDT)
On Apr 15, 8:27 pm, James Dinkel <jdin...@xxxxxxxxx> wrote:
Luis Lavena wrote:
On Apr 15, 6:45 pm, James Dinkel <jdin...@xxxxxxxxx> wrote:
channel.on_data do |ch, data|
and it works, but I would prefer it to use a private key for the
authentication and then prompt for the key's password. In the
documentation it says it will automatically look for a key in certain
places, but the places are unix paths and this needs to run from a
Windows (XP) box.
You will need a few things:
Pageant (from PuTTY) is like a ssh keyring that hold all your private
keys. Also, you need to create a PuTTY session with the same name of
your server (files02) and put into Connection -> Data the username
you're using to log into the server.
That's what I'm using with capistrano and other Net::SSH things that I
cannot disclose, and worked without issues.
HTH,
So, Net::SSH will pull a key from Pageant? I was hoping for something a
little more portable, like being able to tell it to use a key located in
the same directory as the script.
AFAIK, it relly on plink, plink accepts provide a private key file (-
i), but I didn't see how that will fit into Net::SSH code.
Maybe you can request it as feature:
http://rubyforge.org/tracker/?atid=1126&group_id=274&func=browse
--
Luis Lavena
.
- Follow-Ups:
- Re: Windows, Net::SSH: how do I use a private key (w / passw
- From: Gordon Thiesfeld
- Re: Windows, Net::SSH: how do I use a private key (w / passw
- References:
- Windows, Net::SSH: how do I use a private key (w / password)
- From: James Dinkel
- Re: Windows, Net::SSH: how do I use a private key (w / password)
- From: Luis Lavena
- Re: Windows, Net::SSH: how do I use a private key (w / passw
- From: James Dinkel
- Windows, Net::SSH: how do I use a private key (w / password)
- Prev by Date: Re: Windows, Net::SSH: how do I use a private key (w / passw
- Next by Date: Re: Is there a One True Postgres interface? Is Ruby-postgresmaintained?
- Previous by thread: Re: Windows, Net::SSH: how do I use a private key (w / passw
- Next by thread: Re: Windows, Net::SSH: how do I use a private key (w / passw
- Index(es):
Relevant Pages
|