in reply to SSH - Key Authentication

Hello vasanth.easyrider,

I have never tried it for new ssh sessions but it should work. Try to use Expect.

Pseudo code bellow:

#!/usr/bin/perl use Expect; use strict; use warnings; # create an Expect object by spawning another process my $exp = Expect->spawn($command, @params); $exp->send("yes");

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!