New method to detect if we're in an ssh session