Hello aravind.kalla,
Regarding the "we have an rsa public key authentication" on the proposed sample of code that I posted on your question contains:
Attention!!! in my example I am using ssh key exchange, in case you are not using that uncomment the psw on add user (password) and comment out the (key_path)..
I think if you spend 30 seconds reading the proposed sample of code you will see that part, as I said it is 60%-70% of your solution is implemented already, if you choose to use this module.
Hope this helps, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
|