in reply to Re^3: Invoke a perl script on the remote machine.
in thread Invoke a perl script on the remote machine.

Is there any other way other than using Net:SSH2.... I want my script to run in both network... Linux as well as windows

So? libssh2 is cross-platform so I see no issue with using Net::SSH2 with both Linux and Windows (I can't test it on Windows because I don't swing that way, but there should be no problem in principle).

Sure there are other ways of invoking a script across a network (running it as a CGI comes to mind), but they all need to solve the problem of authentication and confidentiality. ssh does this for you in a comfortable and secure way out of the box why not use it?


All dogma is stupid.

Replies are listed 'Best First'.
Re^5: Invoke a perl script on the remote machine.
by Anonymous Monk on Feb 16, 2008 at 02:03 UTC
    Actually I am trying to login from Windows machine(user –abc) to linux machine(user-xyz) using ssh protocol. I have generated the encryption key using Putty Gen & copied the same in the linux machine : $home/.ssh/authentication_key. But still my script is giving the error: - Permission denied (publickey, password, keyboard-interactive). It would be really great if you can help me on this. regards kapila.kohli@gmail.com