Hello monks,

I know I have another thread going where I am OP, but I have an unrelated matter I wanted to address. I'm trying to port my perl html template to windows, and the spot that is sticking is establishing sftp.

I'm using PuTTy and PuTTyGen to create the key pairs.

Here's the rub. I still want perl to be able to sftp to this server with my old linux machine. I want perl to be able to do it from windows as well. So we're to look at a file in the .ssh directory called authorized_keys . When I got the public key from putty, I appended it to this file, providing one line of whitespace. (It occurs to me that my C impulse to leave whitespace isn't a sound one in the unix environment.)

Now, my old machine can log in, but on PuTTy, when I go SSH--->Auth-->Browse to the private key, I do not succeed. Specifically:

Server refused our key

I thought that installing IO::Pty might do something for me, but this doesn't achieve anything:

Configuring T/TO/TODDR/IO-Tty-1.12.tar.gz with Makefile.PL This module requires a POSIX compliant system to work. Try cygwin if y +ou need this module on windows OS unsupported at Makefile.PL line 6. Warning: No success on command[C:\Strawberry\perl\bin\perl.exe Makefil +e.PL] TODDR/IO-Tty-1.12.tar.gz C:\Strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK Stopping: 'install' failed for 'IO::Pty'. Failed during this command: TODDR/IO-Tty-1.12.tar.gz : writemakefile NO 'C:\S +trawberry\perl\bin\perl.exe Makefile.PL' returned status 65280 cpan>

Grateful for any tips and tricks,


In reply to getting sftp to work with 2 different platforms and keypairs by Aldebaran

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.