Check with your vendor concerning auth methods. In my case, my vendors gave me a password when I registered, so I use passwords to connect. Also, if you are using public keys, then yes, Net::SFTP will ignore the password and use public keys, if it is set up correctly.