Skip to content

Instantly share code, notes, and snippets.

@obfusk
Created April 4, 2013 21:03
Show Gist options
  • Select an option

  • Save obfusk/5314326 to your computer and use it in GitHub Desktop.

Select an option

Save obfusk/5314326 to your computer and use it in GitHub Desktop.
secure ssh
--- /etc/ssh/sshd_config.original 2013-04-04 22:52:18.684167049 +0200
+++ /etc/ssh/sshd_config 2013-04-04 22:52:55.284348534 +0200
@@ -24,7 +24,8 @@
# Authentication:
LoginGraceTime 120
-PermitRootLogin yes
+# PermitRootLogin yes
+PermitRootLogin no
StrictModes yes
RSAAuthentication yes
@@ -49,6 +50,7 @@
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
+PasswordAuthentication no
# Kerberos options
#KerberosAuthentication no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment