如何在不使用密钥对的情况下通过 SSH 连接到 Amazon EC2 redhat 实例?
我有一个需要使用 SSH 连接到服务器的应用程序。不幸的是,没有使用我的密钥对的设置 - 只有 un/pw 身份验证。有人知道解决方法吗?
我已经尝试编辑 ssh_config,将 PasswordAuthentication 设置为 yes 并重新加载。
感谢您的任何提示!
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?
I've already tried editing ssh_config, setting PasswordAuthentication yes and reloading.
Thanks for any tips!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑 ssh_config 并启用 PasswordAuthentication 在我的实例上始终对我有用。如果您的应用程序不需要以 root 身份进行身份验证,请务必为其创建一个新用户。另外,请确保您已在实例上正确设置密码。大多数公共实例在初始启动时都会扰乱 root 密码(如果配置不当,可能在每次启动时),因此您肯定需要先设置它,然后才能使用它。
如果这不起作用,请务必查看 EC2 论坛一些更专业的帮助。
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.
If that doesn't work, definitely check out the EC2 forums for some more specialized help.