move build_ssh_options to ssh helper