JasonJWilliamsNY / dc_genomics_docker

Container development for Data Carpentry Genomics lessons
2 stars 2 forks source link

SSH port choice for container #5

Closed JasonJWilliamsNY closed 5 years ago

JasonJWilliamsNY commented 5 years ago

Running the container ssh port on 22 may conflict with connecting to the container while configuring the host machine via an existing ssh session on port 22.

JasonJWilliamsNY commented 5 years ago

This should be ok - tested this on Amazon AWS 1) Opened port 8000 for inbound/outbound traffic 2) Mapped container port 22 to 8000 docker run -p 8000:22 3) Connected via ssh. ssh dcuser@amazon.ip -p 8000.