Skip to content

Instantly share code, notes, and snippets.

@zewebdev1337
Created November 19, 2023 21:17
Show Gist options
  • Save zewebdev1337/2e6b99d4a5db35dee80d70b30d7d373c to your computer and use it in GitHub Desktop.
Save zewebdev1337/2e6b99d4a5db35dee80d70b30d7d373c to your computer and use it in GitHub Desktop.

Revisions

  1. zewebdev1337 created this gist Nov 19, 2023.
    8 changes: 8 additions & 0 deletions sshd_config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    PermitRootLogin no
    PasswordAuthentication no
    PubkeyAuthentication yes
    LoginGraceTime 2m
    AuthorizedKeysFile .ssh/authorized_keys
    X11Forwarding yes
    TCPKeepAlive yes
    Subsystem sftp /usr/lib/ssh/sftp-server