News for hackers. Stuff that matters.
Re:Let's Encrypt and Nginx – State of the art secure web dep... by ruslo on Friday April 01, 2016 @01:53AM (#11402946)

  > sed -i 's|PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config
Will not work if string is commented out:

  > grep PasswordAuthentication /etc/ssh/sshd_config
  # PasswordAuthentication yes
  > sed -i 's|PasswordAuthentication yes|PasswordAuthentication no|g' /etc/ssh/sshd_config
  > grep PasswordAuthentication /etc/ssh/sshd_config
  # PasswordAuthentication no

There are no comments on this comment yet.