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.