ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[root@docker-23 debian-ssh]# cat Dockerfile ``` FROM debian:jessie MAINTAINER debian Docker Maintainers "docker-debian" ADD sources.list /etc/apt/ RUN apt-get update && apt-get install vim curl wget lsof openssh-server -y \ && rm -rf /var/lib/apt/lists/* \ && apt-get clean \ && echo "root:123456" | chpasswd \ && sed -ri 's@^PermitRootLogin\s+.*@PermitRootLogin yes@' /etc/ssh/sshd_config \ && sed -ri 's@UsePAM yes@#UsePAM yes@g' /etc/ssh/sshd_config \ && mkdir -p /var/run/sshd EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] ``` 运行 `` docker run -it --name debian_ssh -d debian_ssh:v1 /usr/sbin/sshd -D ```