Extract ssh config script and define global config.