improve handling of `port` for sft connections