Latest
This commit is contained in:
parent
e9d515d4c8
commit
b34f7b688c
1 changed files with 2 additions and 2 deletions
|
@ -38,10 +38,10 @@ 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 systemsetup -setremotelogin on' && sudo systemsetup -setremotelogin on
|
||||||
logg info 'Running sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
logg info 'Running sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
||||||
logg info 'Running sudo launchctl stop com.openssh.sshd' && 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
|
||||||
# Linux
|
# Linux
|
||||||
logg info 'Enabling the sshd service'
|
logg info 'Enabling the sshd service'
|
||||||
|
|
Loading…
Reference in a new issue