making ssh port configurable

Redo of pull-request #28 against head.

Excluding the "secure_with" option in original PR since it looks like someone else merged that in separately.