generalized ssh regex to catch more cases