如何在没有任何身份验证的情况下使用ssh登录? [英] How to login using ssh without any sort of authentication?

查看:137
本文介绍了如何在没有任何身份验证的情况下使用ssh登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也看到了类似的问题,但是没有帮助。

I have seen similar questions, but nothing helped.

就像这里:

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

我的问题是问题所陈述的。我想将ssh设置为无需任何密码提示或任何键即可工作。意思是在做

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:

我有一个要安装ssh的Ubuntu Docker镜像。这有两个原因:使用scp轻松进行文件传输,另一个原因是,有时我错误地关闭了docker而没有提交,并最终丢失了所有进度/数据。因此,我想使其在后台运行docker容器,并且仅使用ssh访问它。另外,我正在一个团队中工作,我需要其他一些外部人员(他们下载了我的Docker映像)也能够轻松地使用它,这就是为什么我希望它无需登录即可通过ssh访问。

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.

推荐答案

您应该查看将 PermitEmptyPasswords 设置为<$ c $您的 sshd_config 文件和restard sshd服务中c>是。

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


PermitEmptyPasswords
允许密码认证时,它指定服务器是否允许使用空密码字符串登录帐户。默认值为否。

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

这篇关于如何在没有任何身份验证的情况下使用ssh登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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