54 |
echo "##########################################################################" |
echo "##########################################################################" |
55 |
echo "set SSHD to accept root login with rsa key" |
echo "set SSHD to accept root login with rsa key" |
56 |
/sbin/e-smith/db configuration setprop sshd status enabled PermitRootLogin yes access public |
/sbin/e-smith/db configuration setprop sshd status enabled PermitRootLogin yes access public |
57 |
+/sbin/e-smith/expand-template /etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh/ssh_config |
+/sbin/e-smith/expand-template /etc/ssh/ssh_config |
58 |
+/sbin/e-smith/expand-template /etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh/sshd_config |
+/sbin/e-smith/expand-template /etc/ssh/sshd_config |
59 |
+/usr/bin/systemctl restart sshd.service |
+/usr/bin/systemctl restart sshd.service |
60 |
+# a sshd reload does not regenerate the keys and failed |
+# a sshd reload does not regenerate the keys and failed |
61 |
+# doing one after to do the rest (masq etc.) |
+# doing one after to do the rest (masq etc.) |