如何使用SSH的Amazon EC2实例,红帽不使用密钥对? [英] How to SSH to Amazon EC2 redhat instance without using keypair?

查看:211
本文介绍了如何使用SSH的Amazon EC2实例,红帽不使用密钥对?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序,我想使用,需要一个SSH连接到服务器。不幸的是没有设置,使用我的密钥对 - 唯一的联合国/密码认证。有谁知道一个解决方法吗?

I have an app I'd like to use that requires an SSH connection to the server. Unfortunately there are no settings to use my keypair - only un/pw authentication. Does anyone know a workaround?

我已经尝试过编辑ssh_config中,设定的PasswordAut​​hentication yes和重装。

I've already tried editing ssh_config, setting PasswordAuthentication yes and reloading.

感谢您的任何提示!

推荐答案

编辑ssh_config中,使Password验证一直为我工作在我的实例。如果您的应用程序不需要进行身份验证的根,一定要创建新的用户吧。此外,请确保您已正确设置密码的实例。大多数公共实例抢在最初启动时的root密码(如果它们被错误配置,可能在每次开机),所以你一定要设置它之前,你可以使用它。

Editing ssh_config and enabling PasswordAuthentication has always worked for me on my instances. If you application doesn't need to authenticate as root, be sure to create a new user for it. Also, make sure that you have properly set the password on the instance. Most public instances scramble the root password at initial launch time (if they are badly configured, possibly at each boot), so you'll definitely need to set it before you can use it.

如果还是不行,绝对请查看 EC2论坛对于一些更专业的帮助。

If that doesn't work, definitely check out the EC2 forums for some more specialized help.

这篇关于如何使用SSH的Amazon EC2实例,红帽不使用密钥对?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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