This is a great workaround and indeed a CUFP.

I call it a workaround and not a solution because there are two much better ways to do it.

OpenSSH is one. You can get command-line ssh (including OpenSSH) for non-cygwin Windows. Plink, a tool from the PuTTY toolset, is one of my favorites.

Centralized server administration, while a drastic step, should be considered for this many machines. Having your credentials served from a directory or database and your home directory served from a network location (via for example NFS) could allow you to have one password and one ssh private key. Short of networked home directories, rsync or similar in conjunction with the very type of multi-box script you're writing could keep your private keys synced. Unfortunately, this decision typically involves much more than just the person it would help the most, and it involves time and cost estimates for up-front infrastructure work vs. your ongoing costs.

As an aside, I use both Cygwin and some native Windows ports of Unixish utils. http://gnuwin32.sourceforge.net/ is one source of these, and http://unxutils.sourceforge.net/ is another. I don't think either package includes ssh, but it's nice to have these for the odd one-or-two command task that doesn't need Cygwin. It's also much easier to carry these around to other systems than all of Cygwin. This type of package sure beats when I wrote rm and ls as DOS batch files.


In reply to Re: Cygwin/UNIX ssh connector with profiles by mr_mischief
in thread Cygwin/UNIX ssh connector with profiles by radiantmatrix

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.