lftp 连不上 sftp
I have successfully enabled password-less ssh login to a remote server, say example.com with username user.
我已经成功启用了无密码 ssh登录到远程服务器 ,例如,使用用户名user的example.com。
But when I use lftp to log on the sftp by
但是当我使用lftp通过以下方式登录sftp时
lftp sftp://user@example.com
it still asks my password. How it make lftp use my private key to logon the remote lftp server?
它仍然询问我的密码。 它如何使lftp使用我的私钥登录远程lftp服务器?
There is a little trick to make lftp
use your private key for authentication. The key is to pass an empty password to lftp
as follows
有一个小技巧使lftp
使用您的私钥进行身份验证。 关键是将空密码传递给lftp
,如下所示
lftp -u user, sftp://example.com
翻译自: https://www.systutorials.com/how-to-make-lftp-to-use-key-for-authentication-for-sftp-on-linux/
lftp 连不上 sftp