带有密钥和密码的lftp [英] lftp with key + passphrase

查看:71
本文介绍了带有密钥和密码的lftp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 lftp 将文件发送到SFTP服务器,但是我不知道如何使用密钥和密码短语进行连接.

I'm using lftp to send files to an SFTP server, but I don't how to connect with key and passphrase.

因此,在 sftp 中,我可以这样做:

So in sftp, I can do this:

sftp -i .ssh/id_rsa.mykey login@my.host.fr
Enter passphrase for key '.ssh/id_rsa.mykey': my passphrase here

那么,如何通过这种连接方法使用lftp?

So, how can I use lftp with this connection method?

推荐答案

您必须指定用户名,并只需输入任何内容作为密码,即可跳过询问.

You must specify the username, and just pass anything as the password, to skip it asking.

lftp -u user,xxx sftp://...

这篇关于带有密钥和密码的lftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆