Fixed SSHD

This commit is contained in:
Brian Zalewski 2023-11-28 01:27:41 +00:00
parent 2970d6917c
commit 253a8980d8

View file

@ -38,8 +38,8 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then
### Restart SSH server ### Restart SSH server
if [ -d /Applications ] && [ -d /System ]; then if [ -d /Applications ] && [ -d /System ]; then
# macOS # macOS
logg info 'Running sudo launchctl stop com.openssh.sshd' logg info 'Running launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && launchctl load -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl stop com.openssh.sshd logg info 'Running sudo launchctl stop com.openssh.sshd' && sudo launchctl stop com.openssh.sshd
logg info 'Running sudo launchctl start com.openssh.sshd' logg info 'Running sudo launchctl start com.openssh.sshd'
sudo launchctl start com.openssh.sshd && logg success 'Successfully ran launchctl start com.openssh.sshd' sudo launchctl start com.openssh.sshd && logg success 'Successfully ran launchctl start com.openssh.sshd'
else else