日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

windows下FileZilla使用sftp(SSH-2)

發布時間:2025/7/14 windows 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 windows下FileZilla使用sftp(SSH-2) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

為什么80%的碼農都做不了架構師?>>> ??

?

puttygen.exe生成的密鑰文件(SSH-2 RSA)

分別有公鑰和私鑰

服務器端:~/.ssh/authorized_keys

把公鑰復制到這個openssh認證文件里面。

客戶端FileZilla:

編輯->設置->SFTP->添加密碼文件->選擇剛才生成的私鑰文件。

文件->站點管理器->新建站點->填寫ip和端口->選擇sftp->登錄類型"一般" ,然后用戶填寫root,密碼留空即可。

點擊連接,出現下面錯誤:

?

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

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

命令: 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.

轉載于:https://my.oschina.net/jing31/blog/11910

總結

以上是生活随笔為你收集整理的windows下FileZilla使用sftp(SSH-2)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。