文章來自個人博客:https://www.lwxshow.com/tutorials/puttygen-convert-ppk-file-to-xshell-key-file.html html
Putty的ppk文件轉成Xshell的key文件shell
Failed to import the user key解決方案 spa
導入putty生成的ppk文件到Xshell,出現「Failed to import the user key!」錯誤。htm
1.打開puttygen.exeget
2.選擇「Conversions」->「Import key」,選擇要導入的ppk文件。generator
3.Conversions-> Export OpenSSH key博客
如今導出的這個文件就是Xshell登陸須要的文件!io
二、打開Xshell import
2.1File->New Session 登錄
2.2 「Connection」->「Authentication」,Method選擇「Public Key」,
User Name填寫要登陸的用戶名,
->Browse按鈕,Import選擇puttygen導出的文件
Passphrase:若是證書設置了密碼就要填寫密碼
使用Putty登陸轉成使用Xshell登陸了。