2014-06-03 14:51:07 +00:00
|
|
|
diff --git a/sshd.c b/sshd.c
|
|
|
|
--- a/sshd.c
|
|
|
|
+++ b/sshd.c
|
2016-06-17 11:31:03 +00:00
|
|
|
@@ -1701,6 +1701,14 @@ main(int ac, char **av)
|
2011-12-06 16:41:06 +00:00
|
|
|
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
2012-09-14 20:18:22 +00:00
|
|
|
&cfg, NULL);
|
2011-12-06 16:41:06 +00:00
|
|
|
|
2016-06-17 11:31:03 +00:00
|
|
|
+ /* 'UseLogin yes' is not supported in Fedora */
|
2016-06-27 08:33:57 +00:00
|
|
|
+ if (options.use_login == 1)
|
2016-06-17 11:31:03 +00:00
|
|
|
+ logit("WARNING: 'UseLogin yes' is not supported in Fedora and may cause several problems.");
|
|
|
|
+
|
2011-12-06 16:41:06 +00:00
|
|
|
+ /* 'UsePAM no' is not supported in Fedora */
|
|
|
|
+ if (! options.use_pam)
|
|
|
|
+ logit("WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.");
|
|
|
|
+
|
|
|
|
seed_rng();
|
|
|
|
|
|
|
|
/* Fill in default values for those options not explicitly set. */
|
2014-06-03 14:51:07 +00:00
|
|
|
diff --git a/sshd_config b/sshd_config
|
|
|
|
--- a/sshd_config
|
|
|
|
+++ b/sshd_config
|
|
|
|
@@ -101,6 +101,8 @@ GSSAPICleanupCredentials no
|
2011-12-06 16:41:06 +00:00
|
|
|
# If you just want the PAM account and session checks to run without
|
|
|
|
# PAM authentication, then enable this but set PasswordAuthentication
|
|
|
|
# and ChallengeResponseAuthentication to 'no'.
|
|
|
|
+# WARNING: 'UsePAM no' is not supported in Fedora and may cause several
|
|
|
|
+# problems.
|
|
|
|
UsePAM yes
|
|
|
|
|
2014-06-03 14:51:07 +00:00
|
|
|
#AllowAgentForwarding yes
|
2016-06-17 11:31:03 +00:00
|
|
|
@@ -113,6 +115,8 @@ X11Forwarding yes
|
|
|
|
#PrintMotd yes
|
|
|
|
#PrintLastLog yes
|
|
|
|
#TCPKeepAlive yes
|
|
|
|
+# WARNING: 'UseLogin yes' is not supported in Fedora and may cause several
|
|
|
|
+# problems.
|
|
|
|
#UseLogin no
|
|
|
|
#UsePrivilegeSeparation sandbox
|
|
|
|
#PermitUserEnvironment no
|