tarunmudgal4u has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I want to use Net::SSH2 module to establish SSH connection on remote Windows server. Then, once SSH connection is established, I want to fire some CMD system commands on this remote server and capture the output/status.
I've gone through CPAN Net::SSH2 documentation, but, it's not very much elaborative. Can anybody give me pointers where I can get full detail of all the methods available in this module? Also, if there is a sample code to begin with this task, please let me know.
Furthermore, while going through CPAN doc for Net::SSH2 there are some questions came into my mind- 1) when we call channel method, what does it do? 2)what does blocking method do? 3) What are the difference between exec and shell methods?
Please sort out these queries. It would help me to move further.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Help on Net::SSH2 Module Usage on Windows
by Khen1950fx (Canon) on Aug 17, 2012 at 02:57 UTC | |
by tarunmudgal4u (Sexton) on Aug 17, 2012 at 13:00 UTC | |
|
Re: Need Help on Net::SSH2 Module Usage on Windows
by zentara (Cardinal) on Aug 17, 2012 at 10:43 UTC | |
by tarunmudgal4u (Sexton) on Aug 17, 2012 at 13:07 UTC | |
by zentara (Cardinal) on Aug 18, 2012 at 09:03 UTC | |
by tarunmudgal4u (Sexton) on Aug 22, 2012 at 12:19 UTC | |
by zentara (Cardinal) on Aug 22, 2012 at 16:03 UTC |