https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38038 Bug ID: 38038 Summary: Add ability for new SFTP tool to support ssh keys for accessing sftp Change sponsored?: --- Product: Koha Version: 24.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: wizzyrea@gmail.com QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz Bug 36766 added a (pretty awesome!) tool for sftping files to a remote server from the command line - it would be great if it also supported using keys for authentication to sftp servers. Our tool has something like the following, which works for us and probably would be good to add (or the like): if (defined $privatekey && $secret ) { # case for has a key with a password $sftp = Net::SFTP::Foreign->new("$remote", more => '-v', user => "$user", key_path => "$privatekey", passphrase => "$secret", port => $port, late_set_perm => 1 ); } elsif (defined $privatekey ) { # case for only a key $sftp = Net::SFTP::Foreign->new("$remote", user => "$user", key_path => "$privatekey", port => $port, late_set_perm => 1 ); } else { # case for only username/password $sftp = Net::SFTP::Foreign->new("$remote", user => "$user", password => "$secret", port => $port, late_set_perm => 1 ); } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.