Ec2市场Linux实例权限被拒绝(公钥) [英] Ec2 Market place Linux Instance Permission denied (publickey)

查看:141
本文介绍了Ec2市场Linux实例权限被拒绝(公钥)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从市场购买的Wowza实例,大约4个小时前,我能够连接它并对其进行一些操作.但是现在当我尝试连接时,它会给出权限被拒绝"(公钥")错误.我使用chmod命令在./上赋予777权限,这是我认为的真正原因.

I have a Wowza instance purchased from Marketplace, about 4 hrs ago I was able to connect it and was doing some operations on it. But now when I am trying to connect it gives Permission denied (publickey) error. I used chmod command to give 777 permissions on ./ And here is the real cause I think.

在尝试附加根卷时,从此解决方案此实例与其他相同类型的实例的连接给出相同的错误,但是当voulme脱离时,它已成功连接.市场实例的数量只能附加到相似类型的实例上.

From this solution when I am trying to attach the root volume of this instance to other instance of same type it is giving the same error, but when voulme is detached it is being connected successfully. The volume of marketplace instance can be attached to similar type of instance only.

现在如何更改该.ssh目录的权限?你能帮我吗?

Now how can I change the permission of that .ssh directory? Can you please help me out.

以下是我尝试与实例连接时的日志:

Here are the logs when I am trying to connect with the instance:

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 54.69.133.11 [54.69.133.11] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file Desktop/Shivam/mypemfile.pem type -1
debug1: identity file Desktop/Shivam/mypemfile.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1
debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 6a:48:f5:14:13:9a:a1:79:e8:44:bb:0d:6b:8d:b7:59
The authenticity of host '54.69.133.11 (54.69.133.11)' can't be established.
ECDSA key fingerprint is 6a:48:f5:14:13:9a:a1:79:e8:44:bb:0d:6b:8d:b7:59.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '54.69.133.11' (ECDSA) to the list of known hosts.
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: Desktop/Shivam/mypemfile.pem
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).

推荐答案

从AWS Marketplace推出的产品具有非市场实例不必主要执行许可的限制.您遇到了其中一项限制.

Products launched from the AWS Marketplace have restrictions that non-marketplace instances don't have mainly to enforce licensing. You have run into one of the restrictions.

在以下AWS论坛上,相关的 thread 很有用,尤其是该线程中的最后一个帖子:

Here is a relevant thread on the AWS Forums that may be of use, especially the final post in the thread:

如果卷具有AWS Marketplace产品代码:

If a volume has an AWS Marketplace product code:

  • 该卷只能附加到已停止的实例.
  • 您必须订阅卷上的AWS Marketplace代码.
  • 实例的配置(实例类型,操作系统)必须支持该特定的AWS Marketplace代码.例如,你 无法从Windows实例获取卷并将其附加到Linux 实例.
  • AWS Marketplace产品代码从卷复制到实例.
  • The volume can only be attached to a stopped instance.
  • You must be subscribed to the AWS Marketplace code that is on the volume.
  • The configuration (instance type, operating system) of the instance must support that specific AWS Marketplace code. For example, you cannot take a volume from a Windows instance and attach it to a Linux instance.
  • AWS Marketplace product codes are copied from the volume to the instance.

这篇关于Ec2市场Linux实例权限被拒绝(公钥)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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