允许用户ssh到一个EC2实例的Ubuntu? [英] Allowing users to ssh to an EC2 Ubuntu instance?

查看:183
本文介绍了允许用户ssh到一个EC2实例的Ubuntu?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的方式来访问一个新的EC2实例是通过使用密钥对。

The default way to access an new EC2 instance is by using your key-pair.

我怎么能允许其他用户连接到我的情况下,没有给他们我的钥匙? (理想情况下,我想他们会提示对登录用户/密码)

How can I allow other users to connect to my instance, without giving them my keys? (Ideally, I'd like them to be prompted for user/password on login)

推荐答案

编辑/ etc / SSH / sshd_config文件,并设置 Password验证

Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes.

输入命令须藤/etc/init.d/sshd重装

那么你可以创建一个用户:

Then you could Create a User with:

useradd USERNAME

(检查男人如何设置主目录选项等)

(check the man for options on how to set home directory etc...)

然后

passwd USERNAME 

您将被提示输入新密码

这篇关于允许用户ssh到一个EC2实例的Ubuntu?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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