我读了一篇关于SSH Daemon Service的文章.但我想在Centos6.4上运行.所以我从官方的centos图像设置几乎相同的istruction.然后我连接到centos sshd服务器,但连接立即关闭.这是消息.
ssh root@localhost -p 49164
The authenticity of host '[localhost]:49164 ([127.0.0.1]:49164)' can't be established.
RSA key fingerprint is 88:71:89:e5:30:91:78:5c:bf:cb:88:c2:5b:81:1a:b5.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:49164' (RSA) to the list of known hosts.
root@localhost's password:
Connection to localhost closed.
Run Code Online (Sandbox Code Playgroud)
为什么我无法连接centos sshd服务器?
小智 20
这里有同样的问题,如果你在sshd配置中关闭PAM,工作正常.
以下是我们的Dockerfile中的相关行
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19838 次 |
| 最近记录: |