Logging SSH attempts Linux (Ubuntu at least) keeps logs by default for SSH to see them in a good format: run lastb Drawbacks Sadly this does not tell if it is failed or successful login.