Fixed SSHD
This commit is contained in:
parent
2970d6917c
commit
253a8980d8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue