in reply to Net::SFTP::Foreign key_path
You can also put that information on ~/.ssh/config (see ssh_config).$sftp1 = Net::SFTP::Foreign->new($host1, key_path => '/path/to/id_dsa' +); $sftp2 = Net::SFTP::Foreign->new($host1, key_path => '/path/to/id_rsa' +); ...
|
|---|