mirror of
https://github.com/MLBZ521/MacAdmin.git
synced 2026-02-03 14:03:26 +00:00
v1.0 = Initial Version
+ Initial Version
This commit is contained in:
18
Jamf Pro/Extension Attributes/jamf_ea_SSHState.sh
Normal file
18
Jamf Pro/Extension Attributes/jamf_ea_SSHState.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
###################################################################################################
|
||||
# Script Name: jamf_ea_SSHState.sh
|
||||
# By: Zack Thompson / Created: 10/30/2018
|
||||
# Version: 1.0 / Updated: 10/30/2018 / By: ZT
|
||||
#
|
||||
# Description: A Jamf Extension Attribute to grab the Remote Login (SSH) State.
|
||||
#
|
||||
###################################################################################################
|
||||
|
||||
if [[ $(/usr/sbin/systemsetup -getremotelogin) == "Remote Login: Off" ]]; then
|
||||
echo "<result>Disabled</result>"
|
||||
else
|
||||
echo "<result>Enabled</result>"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user