Perhaps the module Expect or Net::SSH::Expect would be of use to you. For module installation help read Installing Modules from the tutorials section of the site.
Also you posted in the wrong section of the forum and ignored the markup advice. See:
Martin
In reply to Re: Change linux root passwor
by marto
in thread Change linux root passwor
by praveenzx
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |