How to login using ssh without any sort of authentication?

本小妞迷上赌 提交于 2020-08-20 05:47:14

问题


I have seen similar questions, but nothing helped.

Like here:

  • SSH login with no authentication
  • SSH session without ANY authentication

My problem is as the question states. I want to setup ssh to work without any password prompt or any keys. Means, doing

ssh computer@IP_address

should give me access to the remote machine.

Question ends here^^^^^^^^^^^. Details of what I'm trying to achieve:

I have a docker image of Ubuntu in which I'm trying to install ssh. This has 2 reasons: easy file transfer using scp and the other is, that I sometimes, by mistake I close docker without committing and end up losing all my progress/data. So I want to make it such that I run the docker container in the background and only access it using ssh. Also, I am working in a team and I'll need to some other outside people(who download my docker image) to be able to work with it easily as well, which is why I want it to be ssh-accessible without a login.


回答1:


You should look at setting PermitEmptyPasswords to yes in your sshd_config file and restard sshd service.

PermitEmptyPasswords When password authentication is allowed, it specifies whether the server allows login to accounts with empty password strings. The default is ''no''.



来源:https://stackoverflow.com/questions/49596760/how-to-login-using-ssh-without-any-sort-of-authentication

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