Aldebaran has asked for the wisdom of the Perl Monks concerning the following question:
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 keyI 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,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: getting sftp to work with 2 different platforms and keypairs (maybe OT)
by hippo (Archbishop) on Sep 06, 2019 at 19:57 UTC | |
Re: getting sftp to work with 2 different platforms and keypairs
by atcroft (Abbot) on Sep 06, 2019 at 22:51 UTC | |
Re: getting sftp to work with 2 different platforms and keypairs
by johngg (Canon) on Sep 06, 2019 at 20:32 UTC | |
by pryrt (Abbot) on Sep 07, 2019 at 01:44 UTC | |
by Aldebaran (Curate) on Sep 16, 2019 at 19:12 UTC | |
by soonix (Chancellor) on Sep 16, 2019 at 21:53 UTC | |
Re: getting sftp to work with 2 different platforms and keypairs
by soonix (Chancellor) on Sep 07, 2019 at 11:04 UTC |