Skip to content

Commit

Permalink
Merge pull request #190 from silversword411/main
Browse files Browse the repository at this point in the history
From Discord #scripts Thanks Stefan!
  • Loading branch information
silversword411 authored Oct 29, 2023
2 parents e07ebbf + 019cfd6 commit 7b58891
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts_wip/linux_sshserver_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# With love from Stefan Lousberg 10/29/2023
#

SSH_STATUS=$(systemctl is-active sshd)

if [ "$SSH_STATUS" == "active" ]; then
echo "SSH server (sshd) is running"
exit 0
else
echo "SSH server (sshd) is not running"
exit 1
fi

0 comments on commit 7b58891

Please sign in to comment.