I'm using lftp to send files to an SFTP server, but I don't how to connect with key and passphrase.
So in sftp
, I can do this:
sftp -i .ssh/id_rsa.mykey [email protected]
Enter passphrase for key '.ssh/id_rsa.mykey': my passphrase here
So, how can I use lftp with this connection method?
I have also tried:
lftp -e "set ssl:key-file .ssh/id_rsa.mykey" sftp://my.host.fr
lftp -u user, sftp://hostname
also works (note the comma) – Katabasis