Actually Net::SSH won't let you input a password. Number one item on the FAQ in it's docs FWIW. It expects you to use shared keys for passwordless login. You can use Net::SSH::Expect, Net::SSH2 or Net::SSH::Perl which will let you programatically input a password.