简体   繁体   English

如何使用 Xshell 6 连接 aws ec2

[英]how to connect aws ec2 using Xshell 6

i have stuck at Xshell6 where i am trying to connect Aws EC2 Ubuntu instance.我一直在尝试连接Aws EC2 Ubuntu实例的Xshell6 I have upload .pem key in User key Manager, prompt new session, putted Name, Hostname, Protocol as 22. In authentication, using public key as method, username as ec2-user and picking public key (.pem file)我已在用户密钥管理器中上传.pem key ,提示新会话,将名称、主机名、协议设为 22。在身份验证中,使用公钥作为方法,用户名作为ec2-user并选择公钥(.pem 文件)

Still it is asking passphrase .它仍然在询问密码 Can someone help how to connect Amazon EC2 instance by using passphrase ?有人可以帮助如何使用密码连接 Amazon EC2 实例吗?

Username for AWS Ubuntu instance is ubuntu , you are using username as ec2-user which is for the Amazon Linux AMI. AWS Ubuntu 实例的用户名是ubuntu ,您使用的用户名是 Amazon Linux AMI 的ec2-user

So, put the user as ubuntu and you'll get logged in.因此,将用户设置为ubuntu即可登录。

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

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