BernieC has asked for the wisdom of the Perl Monks concerning the following question:
Has anyone gotten $ssh2->check_hostkey to work with Strawberry on Win7? After much fooling around I managed to get it to try to run with :
$ssh2->check_hostkey(Net::SSH2::LIBSSH2_HOSTKEY_POLICY_ASK(), "d:/prof +iles/known_hosts.pub") or $ssh2->die_with_error ;
That gets me
The authenticity of host 'shell02.theworld.com' can't be established. Key fingerprint is SHA1:17721d6703c62de34708db3cf40acb788fb755bf. Are you sure you want to continue connecting (yes/no)? Non-blocking Re +adLine is not supported on this architecture at C:/Strawberry/perl/vendor/lib/Ne +t/SSH2.pm line 314.
I've tried both _TOFU and_ADVISORY and they don't die on the check_hostkey but get me a
Authentication failed (username/password) (-18 LIBSSH2_ERROR_PUBLICKEY +_UNRECOGNI ZED) at D:\Desktop\sshtest.pl line 15.
when I try to authenticate. SSH2 did create a new entry in my .pub file
shell02.theworld.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXGlHigbLsh +tD6CHX0uyIEkywwYP5Gnqlkn1BegYYrmWmgVrhN/XkxCyVqJQPVp6wqBK6fwY7jh/2VOM +mdMx4bPOz8sAqDfz6oubXQNbSCA/30IepqEpUEL24XNNrAtG1z9HPQHUoDEZBLNFoNEya +g6eIQaGFKl+GfF0qmo9Xj9jQ1SlPntmGkJj7O91qL5hVNkt7Zm1tRfiN2zvcDWBYHzzy9 +DROsyv1bPg/ycYtDYg+HZ9boBgZOJnEY5SiMlHd7gtIjQCB3wyap0U901+fOUCOGzKCy+ +1eKd5uDPNFeVrvIR4qgSIaS+YcADQUAfpbT73OLWwp4Ei6H6fsE5vCD (Net::SSH2)
which is different than the key in my .pub file for the host from my ssh client. Dunno quite what to try next.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't get $ssh2->check_hostkey to work
by thanos1983 (Parson) on Aug 09, 2018 at 07:51 UTC | |
|
Re: Can't get $ssh2->check_hostkey to work
by syphilis (Archbishop) on Aug 09, 2018 at 11:53 UTC | |
by BernieC (Pilgrim) on Aug 10, 2018 at 05:52 UTC | |
by BernieC (Pilgrim) on Aug 10, 2018 at 06:52 UTC | |
by zentara (Cardinal) on Aug 10, 2018 at 09:51 UTC | |
by salva (Canon) on Aug 11, 2018 at 23:53 UTC | |
by pryrt (Abbot) on Aug 15, 2018 at 14:14 UTC | |
|
Re: Can't get $ssh2->check_hostkey to work
by salva (Canon) on Aug 09, 2018 at 07:00 UTC | |
by BernieC (Pilgrim) on Aug 09, 2018 at 19:31 UTC |