Refactor ssh options generation