Skip to content

Instantly share code, notes, and snippets.

@betaboon
Created October 23, 2017 09:02
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 betaboon/1aa96559eed13d8408b9d91a631d9078 to your computer and use it in GitHub Desktop.
Save betaboon/1aa96559eed13d8408b9d91a631d9078 to your computer and use it in GitHub Desktop.
{ config, pkgs, ...}:
{
services.openssh = {
enable = true;
permitRootLogin = "no";
extraConfig = ''
## Permit local root login
Match Address 127.0.0.1
PermitRootLogin yes
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment