boot2docker / boot2docker-cli

boot2docker management utility
Apache License 2.0
339 stars 95 forks source link

VM SSH Port config #354

Closed jeffturcotte closed 9 years ago

jeffturcotte commented 9 years ago

I have a project that uses SSH (for git access) in a container, and ideally exposes port 22 on the boot2docker host. In order to bind to 22 in the VM, I reconfigured the VM's SSH to use a port other than 22. This means that the convenience of boot2docker ssh is lost, as there is no way for me to configure the VM SSH port in the configuration file. The current SSHPort config is not what I need.

A way to configure which port boot2docker ssh connects to would be very nice. An HostSSHPort option perhaps?

Thanks!

jeffturcotte commented 9 years ago

I ended up just adding a port override to my ssh config.