windows下FileZilla使用sftp(SSH-2)

 

puttygen.exe生成的密钥文件(SSH-2 RSA服务器

分别有公钥和私钥app

服务器端:~/.ssh/authorized_keysssh

把公钥复制到这个openssh认证文件里面。工具

客户端FileZilla:this

编辑->设置->SFTP->添加密码文件->选择刚才生成的私钥文件。加密

文件->站点管理器->新建站点->填写ip和端口->选择sftp->登陆类型"通常" ,而后用户填写root,密码留空便可。spa

点击链接,出现下面错误:代理

 

命令: keyfile "rsa-key-FileZilla.ppk"excel

命令: open "root@XXX.XXX.XXX.XXX" 22orm

命令: Pass: 

错误: 认证失败。

错误: 严重错误

错误: 没法链接到服务器

 

关键是一样的私钥,放在winscp和pageant均可以正常认证链接啊。

难道是这种加密类型FileZilla不支持???

寻找wiki

果真是SSH-2 RSA加密的问题,FileZilla若是要支持SSH-2 RSA加密,须要Putty的其余工具,首先要把密钥转换成Putty的ppk格式,这个我以前就是用这个工具作的密钥,因此没有问题,而后还须要用pageant作代理才能正常使用,在pageant中托管密钥,而后开启FileZilla就能够选择sftp并正常使用了。

http://wiki.filezilla-project.org/Howto

 

For SFTP using SSH2, FileZilla utilizes the excellent PuTTY tools. To allow the use of RSA / DSA key files with Filezilla, you'll need to download two more tools from PuTTY: Pageant and (assuming your key file isn't already in PPK format) PuTTYgen.

If your key file is already in PuTTY's PPK format you can skip this paragraph. However if your key is in OpenSSH format, you first need to convert it to PuTTY's PPK format. To do this, launch PuTTYgen and from the "Conversions" menu, select the "Import key" option. Select your key and follow the prompts to enter your pass phrase. Save your private key.

Now run Pageant. In your system tray, you'll see the Pageant icon appear. Right-click the icon and select "Add Key" and select your private key (PPK) file. Follow the prompt to enter your pass phrase and you're done.

Now simply launch FileZilla and connect to your server using SFTP using SSH2 with a username and an empty password. Don't forget to close pageant when you're done.

相关文章
相关标签/搜索