Change the way the ssh_config file is produced: use either a file or standard out, which is cleaner