Windows下生成 公鑰 私鑰以及 配置 Filezilla中的 SFTP的私鑰

Win下須要使用到 PuTTYgen.exe來生成公鑰私鑰,能夠參考youtube的這篇文章:  爲 SFTP 保管箱生成 Secure Shell (SSH) 密鑰對html

 

PuTTYgen.exe的下載地址: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.htmlsession

 

兩篇關於FileZilla的SFTP用Private Key登陸的方法的文章:ssh

FileZilla SFTP (SSH)服務器教學this

FileZilla的SFTP用private key的登陸方法google

cmd下使用密鑰和非密鑰方式登陸sftp的方法htm

 

 

============blog

https://support.hoststore.com/?/Knowledgebase/Article/View/86/0/how-to-connect-via-psftp-secure-ftp-using-a-private-key-fileip

how-to-connect-via-psftp-secure-ftp-using-a-private-key-fileget

 

Creating the key
 cmd

  • create an ssh key in cPanel if you haven't already.
  • REMEMBER your passphrase
  • view the private key (you will need to put in the passphrase to do this)
  • select the entire key.
  • open a new text file on your desktop, named username.txt
  • paste the private key in to the text file
  • change the name of the file to username.ppk

Configuring Putty
 

  • download both putty and psftp here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  • fire up putty (just double click on the exe)
  • under "saved sessions" put your username
  • in hostname box put: username@ip || example: nick@1.2.3.4
  • click the ssh radio button
  • change the port if the ssh port is not 22
  • on the menu on the left click the + next to SSH
  • click the auth category
  • click the browse button select the key you saved earlier (should be username.ppk)
  • click on session on the left menu
  • click the save button
  • click cancel

using psftp:
 

  • open psftp (just double click the exe)
  • type: open username
  • enter the passphrase for your private key

you are now connected via secure ftp, congratulations

相關文章
相關標籤/搜索