本文介绍了带有密钥和密码的lftp吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 lftp 将文件发送到sftp服务器,但是我不知道如何使用密钥和密码连接.
I'm using lftp to send files to a 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 using lftp with this connecting method ?
推荐答案
您必须指定用户名,并且只需输入任何内容作为密码,即可跳过询问.
You must specify the username, and just pass anything as the password, to skip it asking.
lftp -u user,xxx sftp://...
这篇关于带有密钥和密码的lftp吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!