1. What error message do you get
2. Could you try the script with strict and warnings.
3. Could you also use die and $!
4. Did you check sshd logs on the server

~Parag



On Tue, Feb 22, 2011 at 11:51 PM, Agnello George
<agnello.dso...@gmail.com>wrote:

> Hi
>
> i am able to run  a command on the remote machine but i am not able to
> completely login to the remote machine
>
> =============================
> use Net::SSH::Expect;
>
> my $ssh = Net::SSH::Expect->new (
>      host => "1.1.1.1" ,
>      password=> "password",
>      user => "user1",
>      raw_pty => 1
>      );
>
> myl $login_output = $ssh->login();
> print "This is the login promt $login_output";
> print "\n";
>
>
> ======================
>
> thanks for all the help
>
> --
> Regards
> Agnello D'souza
>

Reply via email to