如何配置对EC2实例的多个SSH访问 [英] How do I configure multiple ssh access to an EC2 instance

查看:84
本文介绍了如何配置对EC2实例的多个SSH访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试为开发团队设置对我的Amazon实例的访问权限,但遇到了一些麻烦.我在网上尝试了许多不同的教程,似乎没有任何工作.这是我的配置:

I've been trying to setup access to my Amazon instance to my development team and have hit a bit of a brick wall. I've tried a bunch of different tutorials online & none seem to work. Here's my config:

  • 我有权访问AWS管理控制台&我希望我是该帐户的中央管理员,他们不需要设置新实例.
  • 我有一个运行32位Amazon Linux AMI的t1.micro实例设置
  • 我的开发人员和我都使用Mac.我可以使用分配给盒子的密钥对将其插入
  • 我以前曾尝试过将ssh插入机器&添加我的开发人员密钥&但他一直在获得拒绝访问"(公共密钥)
  • 我为我的开发人员设置了一个密钥对,但显然它与帐户无关,

我是否必须在IAM中设置开发人员,以便他们登录&设置我首次创建帐户时必须设置的原始密钥?难道就是他们所缺少的吗?

Do I have to setup the developer in IAM so that they login & setup the original key that I had to setup when I first created the account? Could that be what they are missing?

我确实让他们之一在他们的机器上设置了一个密钥,向我提供要插入〜/.ssh/authorized_keys文件的RSA信息,但是他们仍然收到上面的错误消息.即使正确修改了密钥,他们仍然会收到该错误.可能是由于.ssh文件夹上需要chmod吗?

I did get one of them to setup a key on their machine & provide me the RSA info to insert into the ~/.ssh/authorized_keys file, however they still received the error message above. Even when their key was chmod'd correctly, they still received that error. Could that be due to chmod needed on the .ssh folder?

只是要弄清楚访问基于Linux的EC2实例的要求,该实例不是该帐户的主要管理员(即我的开发人员).仅供参考,我对他们拥有实例的完全权限.

Just trying to get some clarity on requirements of accessing a linux-based EC2 instance that isn't the main admin of the account (i.e. my developers). FYI I trust them with full permissions on the instance.

谢谢.

推荐答案

.ssh目录应为chmod 700.

这篇关于如何配置对EC2实例的多个SSH访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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