Tag: openssh

构buildDocker镜像时无法使用私钥进行SSH

在Docker镜像构build期间,我无法检出托pipe在GitHub上的私有git存储库。 SSH在详细模式下的错误是: OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to github.com [192.30.252.130] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: identity file […]

当ssh到容器问密码

我创build了一个docker镜像,经过testing用SSHlogin容器。 但是,当我尝试SSH容器,我被问到的根密码。 任何想法来解决它。 Dockerfile FROM ubuntu:trusty RUN apt-get update RUN apt-get install -y openssh-server supervisor vim build-essential git RUN mkdir -p /var/run/sshd ADD supervisord/sshd.conf /etc/supervisor/conf.d/sshd.conf RUN echo 'root:root' | chpasswd EXPOSE 22 CMD ["/usr/bin/supervisord"] supervisord / sshd.conf [supervisord] nodaemon=true [program:sshd] command=/usr/sbin/sshd -D