#!/bin/bash
# Restart sshd by killing all old / stale connections

screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart'


#!/bin/bash
# Restart sshd by killing all old / stale connections

screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart; systemctl restart sshd.service'


Make CentOS 7 also restart. Not the best way to do this, but should work...
Make CentOS 7 also restart.  Not the best way to do this, but should
work...
