大佬教程收集整理的这篇文章主要介绍了设置 SSH 以运行 EC2 实例,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我昨天使用以下命令设置了 EKS:
eksctl create cluster --name=eks-goup \
--nodegroup-name=standard-workers \
--node-type=t2.micro --nodes=2 --nodes-min=1 --nodes-max=2 \
--node-ami=auto --region eu-central-1
@H_675_6@
我使用 Amazonlinux2 作为服务器。我已经检查了 AWS website which user to use
对于 Amazon linux 2 或 Amazon linux AMI,用户名为:ec2-user。
在尝试连接到实例之前,我设置了密钥对 EC2-> 密钥对 -> 创建
我还检查了我的实例上是否有密钥对,所以我做了EC2 -> 实例 -> 选择实例 -> 并检查密钥对名称(当我点击链接时,我看到了)
我还检查了入站端口 22 是否打开,是的
22 TCP 0.0.0.0/0 eksctl-eks-goup-nodegroup-standard-workers-SG-3IWA6FZSARK5
22 TCP ::/0
@H_675_6@
所以我尝试通过 SSH
连接到我的实例ssh -vvv -i EKX-25-03.pem ec2-user@3.1XX.XX6.13X
deBUG1: Connection established.
deBUG3: authmethod_is_enabled publickey
deBUG1: Next authentication method: publickey
deBUG1: Trying private key: EKX-25-03.pem
deBUG3: sign_and_send_pubkey: RSA SHA256:7xvxTqEpj5suvgb8RPC+LQw7hmNV701E89rR17UuqOI
deBUG3: sign_and_send_pubkey: signing using rsa-sha2-512
deBUG3: send packet: type 50
deBUG2: we sent a publickey packet,wait for reply
deBUG3: receive packet: type 51
deBUG1: Authentications that can conTinue: publickey,gssAPI-keyex,gssAPI-with-mic
deBUG2: we dID not send a packet,disable method
deBUG1: No more authentication methods to try.
ec2-user@3.1XX.XX6.13X: Permission denIEd (publickey,gssAPI-with-miC).
@H_675_6@
我错过了什么?? 我必须玩 VPC 吗? IAM ??
以上是大佬教程为你收集整理的设置 SSH 以运行 EC2 实例全部内容,希望文章能够帮你解决设置 SSH 以运行 EC2 实例所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。