Skip to content

Commit eb2f68c

Browse files
sshd works as a service on windows
1 parent 6b2d437 commit eb2f68c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

servconf.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ initialize_server_options(ServerOptions *options)
9898
options->server_key_bits = -1;
9999
options->login_grace_time = -1;
100100
options->key_regeneration_time = -1;
101-
options->permit_root_login = PERMIT_NOT_SET;
101+
#ifndef WIN32_FIXME
102+
options->permit_root_login = PERMIT_NOT_SET;
103+
#else
104+
options->permit_root_login = PERMIT_YES;
105+
#endif
102106
options->ignore_rhosts = -1;
103107
options->ignore_user_known_hosts = -1;
104108
options->print_motd = -1;

0 commit comments

Comments
 (0)