How to SSH to Amazon EC2 redhat instance without using keypair?

一个人想着一个人 提交于 2019-12-11 13:23:40

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/2523615/how-to-ssh-to-amazon-ec2-redhat-instance-without-using-keypair

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!