SSH timeout and log improvements