简体   繁体   中英

AWS Ec2 ubuntu instance

I am getting this error while connecting(through ssh) to an EC2 instance: No authentication methods available(server sent public key) and I am not able to locate the .PEM file stored in ubuntu Ec2 instance? Please help me to solve this problem.

I found answer for the above question..We have to transfer the downloaded .PEM file from local filesystem (ie Windows) to Amazon Ec2 instance (ie Ubuntu) using SCP or Filezilla . Check the below link

http://angus.readthedocs.org/en/2014/amazon/transfer-files-between-instance.html

After moving .PEM file to specific location ( For Ex: home/ubuntu/.ssh or ~/.ssh ) in ubuntu.. use following command to SSH

ssh -i /path/to/.PEM username@DNS-name-of-instance

OR

ssh -i /path/to/.PEM username@private-ip-of-instance

EC2机器不包含.PEM文件。用户必须在创建EC2实例时下载它,它是一个可下载的文件。使用此文件的用户可以与EC2机器通信。对于Windows用户,将.pem文件转换为。 ppk文件使用putty keygen.for linux用户,可以直接使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM