WifiLogger2 doesn't have an ssh port open, but it does respond on port 80 to a restart command from http. Under macOS I use the shell script command to open the Safair browser to the restart javascript command.
#!/bin/sh
# Shell script to restart the weatherLogger wifi device in the Davis Vantage Pro 2 in the Harbormaster Building
# The weather logger tends to disconnect from network every 4 days causing weewx to crash in a waiting state
# Currently set to run by rycweather as a cron job once a day at 8:07 am.
# check to see if weatherLogger is connected on Harbormaster vlan
/sbin/ping -c 1 192.168.145.106
if [[ "$?" == "0" ]]; then
weatherLoggerStatus="weatherLogger is online"
# Using Safari browser
# wait for Safari to launch and load javascript function of URL
sleep 60
# close Safari
killall Safari
else
weatherLoggerStatus="weatherLogger is OFFLINE"
fi
# Check weatherLogger is connected again
/sbin/ping -c 1 192.168.145.106
if [[ "$?" == "0" ]]; then
newWeatherLoggerStatus="weatherlogger is back online"
else
newWeatherLoggerStatus="weatherLogger is OFFLINE after restart"
fi
echo "$weatherLoggerStatus and after restart $newWeatherLoggerStatus" | mail -s "weatherLogger restart" xxx
exit