Docker: SSH freezes on login

I can succefully login to server using ssh 111.111.111.111 without password. But after multiple ssh login, I can’t access server for some while(it freezes when I try to login).


To tell the whole story I’m trying to create generic docker machine using following lines.

  • Unable to access directory added in docker container
  • Docker volume access from host
  • Running linux container on docker windows
  • Pull docker image behind a corporate firewall throws “Server error: Status 0 while fetching image layer”
  • Openresty Hello world with docker
  • Strong-PM in Docker Container App Connect to Host MongoD
  • docker-machine create\
        --driver generic\
        --generic-ip-address=111.111.111.111\
        srv
    

    All of the errors are ssh related, and they are quite randomly at different stages:

        Error getting SSH command: Something went wrong running an SSH command!
        command : cat /etc/os-release
        err     : exit status 255
        output  :
    

    or:

        if ! type docker; then curl -sSL https://get.docker.com | sh -; fi
        SSH cmd err, output: exit status 255: 
        error installing docker:
    

    After any of these error I can’t login for somewhile. Please let me know if any log or confs is needed.

  • How to compile apache2 own module in dockerfile?
  • Using docker on Mac. Is it possible to start docker daemon using docker-machine and pass in arguments?
  • Why are my non-volume data in Docker container persistence after restarting the container?
  • How to use variable in Marathon Docker parameters
  • Docker Couchbase Failed to connect to 127.0.0.1 port 8091: Connection refused
  • How to configure DNS (and/or loadbalancing) for Docker Swarm Manager
  • One Solution collect form web for “Docker: SSH freezes on login”

    Since docker executes procedures via separate ssh command, somehow my provider detected me as an intruder for brute force attacks, changing the ssh port on remote server solved the problem.

    Please view another question that I asked at
    SSH parallel command execution freeze for this matter.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.