2021-04-19 15:17:19 +00:00
|
|
|
diff -up openssh-8.6p1/sshd.c.log-usepam-no openssh-8.6p1/sshd.c
|
|
|
|
--- openssh-8.6p1/sshd.c.log-usepam-no 2021-04-19 14:00:45.099735129 +0200
|
|
|
|
+++ openssh-8.6p1/sshd.c 2021-04-19 14:03:21.140920974 +0200
|
|
|
|
@@ -1749,6 +1749,10 @@ main(int ac, char **av)
|
2011-12-06 16:41:06 +00:00
|
|
|
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,
|
2020-02-17 10:57:13 +00:00
|
|
|
cfg, &includes, NULL);
|
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.");
|
|
|
|
+
|
2021-04-19 15:17:19 +00:00
|
|
|
#ifdef WITH_OPENSSL
|
|
|
|
if (options.moduli_file != NULL)
|
|
|
|
dh_set_moduli_file(options.moduli_file);
|
|
|
|
diff -up openssh-8.6p1/sshd_config.log-usepam-no openssh-8.6p1/sshd_config
|
|
|
|
--- openssh-8.6p1/sshd_config.log-usepam-no 2021-04-19 14:00:45.098735121 +0200
|
|
|
|
+++ openssh-8.6p1/sshd_config 2021-04-19 14:00:45.099735129 +0200
|
|
|
|
@@ -87,6 +87,8 @@ AuthorizedKeysFile .ssh/authorized_keys
|
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.
|
2020-02-17 10:57:13 +00:00
|
|
|
#UsePAM no
|
2011-12-06 16:41:06 +00:00
|
|
|
|
2014-06-03 14:51:07 +00:00
|
|
|
#AllowAgentForwarding yes
|