ec2实例ssh访问被阻止

时间:2015-12-09 01:59:34

标签: amazon-web-services ssh amazon-ec2

我试图在ec2实例上配置openvpn服务器。上次重启后,我无法连接到我的实例;以下是客户端日志:

    macbrein:~ renato$ ssh ec2-user@52.62.20.211 -i .ssh/ec2-openvpn.pem -vvv
    OpenSSH_6.9p1, LibreSSL 2.1.7
    debug1: Reading configuration data /Users/renato/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 20: Applying options for *
    debug1: /etc/ssh/ssh_config line 102: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 52.62.20.211 [52.62.20.211] port 22.
    debug1: connect to address 52.62.20.211 port 22: Connection refused
    ssh: connect to host 52.62.20.211 port 22: Connection refused

这是实例的最后一个日志(在aws控制面板中检索):

Starting openvpn: [10.975933] tun: Universal TUN/TAP device driver, 1.6 [10.979593] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Enter Private Key Password:

显然openvpn被卡住了,因为它提示输入私钥密码,我认为这会阻止其他所有内容,这可能是问题所在吗? 这不是一台生产机器,我可以简单地终止它并从头开始一个新机器,但我想知道是否有更合适的方法来处理这类问题!

谢谢你!

0 个答案:

没有答案