没有密钥对的 SSH 到 AWS 实例 [英] SSH to AWS Instance without key pairs

查看:123
本文介绍了没有密钥对的 SSH 到 AWS 实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1:有没有不用密钥对就可以登录AWS实例的方法?我想在一个实例上设置几个站点/用户.但是,我不想为客户提供登录的密钥对.

1: Is there a way to log in to an AWS instance without using key pairs? I want to set up a couple of sites/users on a single instance. However, I don't want to give out key pairs for clients to log in.

2:在不同域指向不同目录的 1 个 AWS 实例中设置托管站点/用户的最简单方法是什么?

2: What's the easiest way to set up hosting sites/users in 1 AWS instance with different domains pointing to separate directories?

推荐答案

1) 您应该能够更改 ssh 配置(在 Ubuntu 上,这通常位于 /etc/ssh/etc/sshd) 并重新启用密码登录.

1) You should be able to change the ssh configuration (on Ubuntu this is typically in /etc/ssh or /etc/sshd) and re-enable password logins.

2) 没有什么真正的 AWS 特定于此 - Apache 可以处理 VHOSTS(虚拟主机)开箱即用 - 允许您指定从某个目录提供某个域.我想谷歌一下,了解更多关于细节的信息.

2) There's nothing really AWS specific about this - Apache can handle VHOSTS (virtual hosts) out-of-the-box - allowing you to specify that a certain domain is served from a certain directory. I'd Google that for more info on the specifics.

这篇关于没有密钥对的 SSH 到 AWS 实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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