ssh connection remote docker container error: ssh_exchange_identification: Connection closed by remote host

Error:
ssh_exchange_identification: Connection closed by remote host
Solution: ssh is not installed in the docker container, run the following code:

apt-get install ssh
apt-get update
sudo /etc/init.d/ssh start

Once the container is shut down, these commands will be re-executed and then suspended (ctrl p and ctrl q)

Guess you like

Origin blog.csdn.net/Supreme7/article/details/126231187