mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 07:15:37 +00:00
ssh settings for sshd
This commit is contained in:
parent
fb74122458
commit
e6456d7f02
@ -17,11 +17,13 @@
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 22 ];
|
||||
passwordAuthentication = false;
|
||||
gatewayPorts = "no";
|
||||
forwardX11 = false;
|
||||
allowSFTP = true;
|
||||
permitRootLogin = config.permitRootLogin;
|
||||
settings = {
|
||||
GatewayPorts = "no";
|
||||
X11Forwarding = false;
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = config.permitRootLogin;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.${config.user}.openssh.authorizedKeys.keys =
|
||||
|
Loading…
Reference in New Issue
Block a user