in reply to Re^2: Can't get $ssh2->check_hostkey to work
in thread Can't get $ssh2->check_hostkey to work
It appears that the server won't accept a "password"! I don't exactly know why it says "empty authentication" and doesn't seem to try sending my password. The code is simple{...} Bernie-7-PC: Host 'shell02.theworld.com' is known and matches the host + key. Bernie-7-PC: Verifying server signature. Bernie-7-PC: Send NEWKEYS. Bernie-7-PC: Waiting for NEWKEYS message. Bernie-7-PC: Enabling encryption/MAC/compression. Bernie-7-PC: Sending request for user-authentication service. Bernie-7-PC: Service accepted: ssh-userauth. Bernie-7-PC: Trying empty user-authentication request. Bernie-7-PC: Authentication methods that can continue: publickey,keybo +ard-inter ctive. Bernie-7-PC: Next method to try is publickey. Permission denied at D:\Desktop\sshtest.pl line 15.
I'll have to read up on what happens with the SSH "user-authentication service" and try to understand what's happening there. I can see why everyone who has been successful with SSH has reverted to using publickey auth..:o)my $ssh = Net::SSH::Perl->new("shell02.theworld.com", protocol => 2, debug=>1, strict_host_key_checking => "no", options => ["PasswordAuthentication yes +"] ) ; $ssh->login($login{user}, $login{password}) ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't get $ssh2->check_hostkey to work
by zentara (Cardinal) on Aug 10, 2018 at 09:51 UTC | |
|
Re^4: Can't get $ssh2->check_hostkey to work
by salva (Canon) on Aug 11, 2018 at 23:53 UTC | |
by pryrt (Abbot) on Aug 15, 2018 at 14:14 UTC |