Relative Content

Tag Archive for dockersshdockerfileopenssh

Unable to ssh from one docker container to another container

I’m new at using Docker containers and I’m trying to setup a sandbox environment with an ansible controller and ansible client. For now, I’m going to have both containers share the same image (RHEL8) from the dockerfile below. I’m trying to ‘ssh’ in either direction, but I get “port 22 connection refused. I uncommented out the Port 22 setting in sshd_config, but not sure how to restart sshd service or unblock the firewall port within a container.