Tag: ssh

与Docker提供商的stream浪者与rsync通过ssh失败

我有问题与Docker运行Vagrant。 问题是共享文件夹的rsync。 WDFM32388067A:vagranttest d022051$ vagrant up Bringing machine 'default' up with 'docker' provider… ==> default: Docker host is required. One will be created if necessary… default: Vagrant will now create or start a local VM to act as the Docker default: host. You'll see the output of the `vagrant up` for this VM below. default: […]

在Docker容器中的SSH会导致HTTP 404

我有这样简单的PHP dockerfile : # Base image FROM php:7-fpm # Update packages list RUN apt-get –yes update; # Install SSH server, set root password and allow root login RUN apt-get –yes install openssh-server RUN mkdir /var/run/sshd RUN echo 'root:123' | chpasswd RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # Run SSH server EXPOSE 22 CMD ["/usr/sbin/sshd", […]

如何从外部机器ssh到一个ec2 ubuntu主机上的docker集装箱

我有docker恶魔在Ubuntu的ec2主机上运行。 我可以在这个ubuntu ec2主机上设置一个sshd conatainer,并且能够从docker主机ssh进入.ie ubuntu@ip-172-16-27-205:~/docker-work$ sudo docker run -d -P –name ssh-enabled ssh-enabled bb7f535124b3df403ae97da770fe2e4a4969a7ecddfb5d546aaddfe00e40374d ubuntu@ip-172-16-27-205:~/docker-work$ sudo docker port ssh-enabled 22/tcp -> 0.0.0.0:32768 ubuntu@ip-172-16-27-205:~/docker-work$ ssh root@127.0.0.1 -p 32768 The authenticity of host '[127.0.0.1]:32768 ([127.0.0.1]:32768)' can't be established. ECDSA key fingerprint is e6:74:aa:52:8e:3d:19:7a:92:da:85:d4:b9:f9:ed:f1. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[127.0.0.1]:32768' […]