Amazon AWS EC2 实例 - 无法通过 SSH 连接 [英] Amazon AWS EC2 Instance - Can't connect with SSH

查看:59
本文介绍了Amazon AWS EC2 实例 - 无法通过 SSH 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不应该这么难.我无法通过 SSH 客户端连接到新的 AWS EC2 实例.我从 Win 7 机器连接.

This shouldn't be this hard. I cannot connect to new AWS EC2 instance via SSH clients. I am connecting from a Win 7 box.

实例操作系统:Debian 6

Instance OS: Debian 6

AMI:debian-squeeze-i386-20121119-e4554303-3a9d-412e-9604-eae67dde7b76-ami-1977f070.1(ami-a121a6c8)

用户:尝试过 root 以及 ec2-user

User: tried root and also ec2-user

使用 AWS 生成并下载的 .pem 密钥对

Using .pem keypair that AWS generated and I downloaded

已确认实例上的安全组和密钥对名称

Confirmed security group and Key Pair Name on instance

SSH 端口 22 已打开:Nmap 这么说,Telnet 收到欢迎回复

SSH port 22 is OPEN: Nmap says so and Telnet gets a welcome reply

使用 3 个不同的客户端:所有客户端都连接正常

Using 3 different clients: all clients connect ok

PuTTY 回复:服务器拒绝了我们的密钥

MindTerm Java 浏览器插件回复:身份验证失败,权限被拒绝

MindTerm Java browser add-in replies: Authentication failed, permission denied

Bitvise SSH 回复:Attempting 'publickey' auth;验证失败;

Bitvise SSH replies: Attempting 'publickey' auth; auth failed;

重启实例,清洗,冲洗,重复...

Rebooted instance, wash, rinse, repeat...

重建新实例和新密钥对,清洗,冲洗,重复......

REBUILT new instance and new keypair, wash, rinse, repeat...

连接不是问题.为什么实例不接受 .pem 文件作为密码?我还缺少其他步骤吗?我遵循了每一个我可以谷歌的指南.AWS 支持是个笑话.stackoverflow 来救援...

Connecting isn't the issue. Why would the instance not accept the .pem file as the password? Is there an additional step I am missing? I followed EVERY frigging guide I could Google. AWS support is a joke. stackoverflow to the rescue...

TIA.

推荐答案

根据 debian wiki 有您正在使用的 AMI 上的文档,您需要用于登录的用户名是admin".

According to the debian wiki which has documentation on the AMI you are using, the username you need to use to login is 'admin'.

这篇关于Amazon AWS EC2 实例 - 无法通过 SSH 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆