in reply to Re^2: Using Net::SSH2 with DBIin thread Using Net::SSH2 with DBI
I would either set up a passwordless keypair or use ssh-agent to store the password credentials.