Re: Windows, Net::SSH: how do I use a private key (w / passw



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
.



Relevant Pages

  • Re: Migrate ?
    ... I am the guy with the website SBSmigration.com offering the documentation ... I've presented the background steps of how to do Swing Migration going back ... In-Place Upgrade is documented for Windows 2000/2003 Server is in Chapter ...
    (microsoft.public.windows.server.sbs)
  • Re: Migrating from SBS 2000 to SBS 2003 onto new hardware
    ... The time to do a Swing Migration project is best considered to be closer ... methods for moving and upgrading to SBS 2003 from other existing scenarios. ... Microsoft offered nothing like this in the form of documentation, ... "Microsoft Small Business Server 2003 Advanced Best Practices" ...
    (microsoft.public.windows.server.sbs)
  • Re: Biztalk 2006 EnterpriseOne Adapter Config
    ... Did as you suggested and got latest copy of documentation from the link at ... document on the Line of Busness Adapter CD: ... (There is about three sides of info relating to JDE Enterprise ... <our JDE enterprise server host name> ...
    (microsoft.public.biztalk.general)
  • RE: Proxy Authentication
    ... Both the old and new server have only one NIC and we only ... >> trouble getting authentication to work like in Proxy 2.0. ... >> allowed to browse through the proxy server. ... I would also like this prompt to be able to handle an expired ...
    (microsoft.public.isa.clients)
  • Re: Adding SBS2003 to existing domain, assume DC role?
    ... Understanding Small Business Server Swing Migration ... The difference between what you are seeing in the MS documentation and what ... it includes unlimited support from me, ...
    (microsoft.public.windows.server.sbs)