in reply to Re^2: Standard input must be tty
in thread Standard inpute must be tty

Did you try to do that from the command line?

Try Net::SSH2 or Net::SSH::Perl which will let you pass username/pass