【解決】putty使用從AWS下載的private key登入失敗

來源:互聯網
上載者:User

標籤:blog   http   io   ar   使用   sp   on   檔案   div   

在AWS啟動一個執行個體時如果建立並下載了一個KeyPair的私密金鑰(*.pem),則可以此私密金鑰作為Credentials通過putty遠程登入到這個執行個體系統。但在實際操作中,用putty登入時會提示如下錯誤:

No supported authentication methods available (server sent: publickey)

其原因是因為AWS產生的秘鑰檔案(*.pem)和 putty 要求的秘鑰檔案(*.ppk)格式不同。 

具體解決辦法如下:

1. 從下面頁面下載 PuTTYgen.exe 檔:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

2. 利用如上工具將AWS產生的 .pem 檔案轉換為 .ppk 檔案。

3. 使用新產生的 .ppk 檔案則可成功登入到AWS執行個體。

 

參見:

http://support.rightscale.com/06-FAQs/FAQ_0038_-_How_can_I_get_PuTTY_to_work_to_SSH_into_running_instances

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html

【解決】putty使用從AWS下載的private key登入失敗

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.