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