Docker Community Forums

Share and learn in the Docker community.

Ssh to docker host fails after install

(Mike Lloyd) #1

After installing Docker ( package), when I try to SSH into my Docker host, it automatically tries to connect through to the 172.x port. However, I never changed it, and reinstalling openssh-server didn’t resolve it. I also double-checked there are no iptables configurations, selinux is not installed, my routes are correct with eth0 being the default gateway. If I uninstall the package, and then reboot the host, then I can SSH into it just fine. But as soon as I install the package, it refuses all SSH connections, even when pointing directly at the IP address.

How can I resolve this?

lloydm@ubuntu-primary:~$ ssh -v 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 [] port 22. ^C

lloydm@ubuntu-primary:~$ cat /etc/ssh/ssh_config
Host *
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no

Those are the only enabled options on both hosts, the rest are commented out and not included for formatting reasons.

(Mikael Kjaer) #2

What does your sshd_config say?
Is the ListenAddress set?