General Settings for SSH
Shortcuts (a visual scripting application developed by Apple) has a pleasant feature: Run script over SSH.
| Host | (DDNS or WAN IP Address) |
| Port | (Port opened for SSH) |
| User | (Username on the server) |
| Authentication | (Choose SSH Key for ease) |
| SSH Key | (Choose ed25519) |
| Input | (Leave it empty) |
Wake-on-LAN with Apple’s Shortcuts
Prerequisites:
We can call Siri to wake up our computer.
Run script over SSH
cd <path_to_script>
echo "<password>" | sudo -S ./wake.shIgnore the first line if the Wake-on-LAN script can be accessed anywhere on the server.
Replace <path_to_script> with the script location.
Replace <password> with the root user’s password.
Nmap Port Scan with Apple’s Shortcuts
Prerequisites:
We can check whether our device MAC address shows up and is available for Wake-on-LAN.
Run script over SSH
cd <path_to_script>
echo "<password>" | sudo -S ./mac-search.shIgnore the first line if the Nmap Port Scan script can be accessed anywhere on the server.
Replace <path_to_script> with the script location.
Replace <password> with the root user’s password.
Be First to Comment