Fix SSH automatically closing connection after login