change ssh logic