Net-SSH-Perl - Net-SSH-Perl and sudo

Posted on Tue Apr 22 23:19:04 2008 by finfan
Net-SSH-Perl and sudo
I am writing some automation scripts using this nice SSH module. However, we only authenticate initially to our hosts with user level privileges. Much of what I need to do requires sudo. The sudo is not the problem, it's the passing of the password. Can anyone shed some light on how to issue sudo commands utilizing this module, and how to send the password? If it can't be done, can you refer me to something that can? Thanks
Write a response