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.
In reply to Re: SSH - Key Authentication
by thanos1983
in thread SSH - Key Authentication
by vasanth.easyrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |