Unable to connect to amazon server using putty

2019-06-27 09:40发布

I am trying to connect to EC2 server using putty with the help of .pem. It is giving me an error: Disconnected: No supported authentication methods available (server sent: public key)

I have created a .ppk through puttygen. Still facing the same problem.

Can any one help me with the solution.

3条回答
啃猪蹄的小仙女
2楼-- · 2019-06-27 10:27

U need a private key to connect to the server, the key U have probably is a public key, so U need to generate a private key in puttygen.

查看更多
手持菜刀,她持情操
3楼-- · 2019-06-27 10:34

This usually means that there was a problem with how the pem file was converted to a ppk file, or that the pem file was not the right one to begin with. Make sure you followed the instructions for using puttygen correctly. There is an example here: Convert PEM to PPK file format

Alternatively, use a windows ssh client that uses pem files directly. Two options are:

  1. Cygwin - it includes an ssh command line client.
  2. Poderosa
查看更多
登录 后发表回答