Comment posted Update reverse sshd config with cronjob to revert if sshd reload issues by .
Recent comments by
Tags: config, cronjob, editor, issues, linux?, remote server, revert, root server, sshd, systemctl, technical support, working
Friday, 19th April 2024
Comment posted Update reverse sshd config with cronjob to revert if sshd reload issues by .
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Tags: config, cronjob, editor, issues, linux?, remote server, revert, root server, sshd, systemctl, technical support, working
This entry was posted on Friday, April 19th, 2024 at 3:17 pm and is filed under Linux, Networking, Remote System Administration, System Administration, Various. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
And Isaac went out to meditate in the field at the eventide: and
he lifted up his eyes, and saw, and, behold, the camels were coming.
-- Genesis 24:63
☩ Walking in Light with Christ – Faith, Computing, Diary 2006-2020 Powered by:
Pc Freak Solutions and Comments (RSS).
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Copyright (C) 2020 by Georgi Georgiev - Website Privacy Policy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Note that before adding blindly
it is a good idea to check whether your Linux OS systemctl location is at same place, on older init V systems use instead /etc/init.d/ssh restart as a restart sequence of the cron.
View CommentView CommentMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Nice article, but is it really necessary?
Normally the currently running SSH process is not killed by restarting SSHD, so that you always have the terminal you're currently connected to. Just check the functionallty by making a new connection. I do this for years. Have you encountered problems with this approach? Maybe a distribution thing? I used RHEL and Debian without any problems with SSHD restarts.
Best
Andreas
View CommentView Comment