windows下FileZilla使用sftp(SSH-2)
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
?
puttygen.exe生成的密鑰文件(SSH-2 RSA)
分別有公鑰和私鑰
服務(wù)器端:~/.ssh/authorized_keys
把公鑰復(fù)制到這個(gè)openssh認(rèn)證文件里面。
客戶端FileZilla:
編輯->設(shè)置->SFTP->添加密碼文件->選擇剛才生成的私鑰文件。
文件->站點(diǎn)管理器->新建站點(diǎn)->填寫ip和端口->選擇sftp->登錄類型"一般" ,然后用戶填寫root,密碼留空即可。
點(diǎn)擊連接,出現(xiàn)下面錯(cuò)誤:
?
命令: keyfile "rsa-key-FileZilla.ppk"
命令: open "root@XXX.XXX.XXX.XXX" 22
命令: Pass:?
錯(cuò)誤: 認(rèn)證失敗。
錯(cuò)誤: 嚴(yán)重錯(cuò)誤
錯(cuò)誤: 無法連接到服務(wù)器
?
關(guān)鍵是同樣的私鑰,放在winscp和pageant都可以正常認(rèn)證連接啊。
難道是這種加密類型FileZilla不支持???
尋找wiki
果然是SSH-2 RSA加密的問題,FileZilla如果要支持SSH-2 RSA加密,需要Putty的其他工具,首先要把密鑰轉(zhuǎn)換成Putty的ppk格式,這個(gè)我之前就是用這個(gè)工具做的密鑰,所以沒有問題,然后還需要用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.
轉(zhuǎn)載于:https://my.oschina.net/jing31/blog/11910
總結(jié)
以上是生活随笔為你收集整理的windows下FileZilla使用sftp(SSH-2)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 上海电信计划2015年用户带宽提高12.
- 下一篇: css自动限制图片大小