Skip to content

Instantly share code, notes, and snippets.

@napramirez
Created July 21, 2016 17:07
Show Gist options
  • Select an option

  • Save napramirez/d41b84f43ce771b7c4719dff366c79ff to your computer and use it in GitHub Desktop.

Select an option

Save napramirez/d41b84f43ce771b7c4719dff366c79ff to your computer and use it in GitHub Desktop.
tail -f /var/log/secure # Inside a CentOS 7 Vagrant box
user@localhost:~$ ssh vagrant@localhost -p 2222
vagrant@localhost's password:
[vagrant@localhost ~]$ sudo tail -f /var/log/secure
localhost sshd[11456]: Authentication refused: bad ownership or modes for file /home/vagrant/.ssh/authorized_keys
localhost sshd[11456]: Connection closed by 10.0.2.2 [preauth]
localhost sshd[11458]: Authentication refused: bad ownership or modes for file /home/vagrant/.ssh/authorized_keys
localhost sshd[11458]: Connection closed by 10.0.2.2 [preauth]
localhost sshd[11460]: Authentication refused: bad ownership or modes for file /home/vagrant/.ssh/authorized_keys
localhost sshd[11460]: Connection closed by 10.0.2.2 [preauth]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment