简体   繁体   English

AWS Ec2 ubuntu实例

[英]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? 我在连接(通过ssh)到EC2实例时收到此错误: 没有可用的身份验证方法(服务器发送公钥) ,我无法找到存储在ubuntu Ec2实例中的.PEM文件? 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 . 我找到了上述问题的答案。我们必须使用SCP或Filezilla将下载的.PEM文件从本地文件系统(即Windows)传输到Amazon Ec2实例(即Ubuntu) Check the below link 请查看以下链接

http://angus.readthedocs.org/en/2014/amazon/transfer-files-between-instance.html 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 将.PEM文件移动到ubuntu中的特定位置( 对于Ex:home / ubuntu / .ssh或〜/ .ssh )之后..使用以下命令来SSH

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

OR 要么

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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