Skip to content

Instantly share code, notes, and snippets.

@tongphe
Created May 4, 2020 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tongphe/9b02a9265f4d5300db3e2d4e4602b30b to your computer and use it in GitHub Desktop.
Save tongphe/9b02a9265f4d5300db3e2d4e4602b30b to your computer and use it in GitHub Desktop.
Hass secure ssh server config
Port 57749
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
PermitRootLogin no
MaxAuthTries 5
ClientAliveInterval 900
ClientAliveCountMax 3
AllowUsers pi@192.168.1.0/24 pi@x.x.y.y root@192.168.1.0/24
Match address 192.168.1.0/24
PasswordAuthentication yes
PermitRootLogin yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment