如何从FileZilla FTP客户端的密钥缓存中提取SFTP SSH密钥 [英] How To Extract SFTP SSH Key From Key Cache in FileZilla FTP Client

查看:926
本文介绍了如何从FileZilla FTP客户端的密钥缓存中提取SFTP SSH密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用FileZilla通过SFTP连接到服务器,并接受将服务器的SSH密钥添加到FileZilla中的密钥缓存。

如何将此缓存键提取到密钥文件,以便可以通过其他需要密钥文件的SFTP应用程序使用它?



我无法在FileZilla文档中找到与此相关的任何内容。

解决方案

如果使用标准的openssh控制台客户端(cygwin或linux),主机密钥将存储在〜/ .ssh / known_hosts中,每行一个。从那里开始,找出你的库需要哪一个主密钥是一件简单的事情。



Putty也存储主机密钥,但它似乎是将它们编码为十六进制。这些可以在HKCUR \ Software \SimonTatham\PuTTY\SshHostKeys找到


I have connected to a server via SFTP using FileZilla and accepted adding the server's SSH key to the key cache in FileZilla.

How can I extract this cached key to a keyfile so that may use it through other SFTP applications that require a keyfile be made available?

I have not been able to find anything in the FileZilla documentation related to this.

解决方案

If you use the standard openssh console client (cygwin or from linux), host keys are stored, one-per-line, in ~/.ssh/known_hosts. From there, it's a simple matter of figuring out which bit of that host key is needed for your library.

Putty also stores host keys, but it appears to encode them in hex. Those can be found at HKCUR\Software\SimonTatham\PuTTY\SshHostKeys

这篇关于如何从FileZilla FTP客户端的密钥缓存中提取SFTP SSH密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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