#!/usr/bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 arg1" echo " where arg1 is one of:" echo " start" echo " stop" echo " status" exit 1 fi if [ "$1" == "status" ]; then sudo systemctl status ssh fi if [ "$1" == "start" ]; then sudo systemctl start ssh fi if [ "$1" == "stop" ]; then sudo systemctl stop ssh fi