Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ea92a7

Browse files
committed
ssh connection checks
1 parent 2dba5e9 commit 0ea92a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎miscellaneous/checkssh_conn.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
conn_check=$(sudo netstat -p | grep tcp | grep ssh)
4+
5+
if [[ -z "$conn_check" ]];then
6+
echo $conn_check
7+
else
8+
echo $conn_check
9+
fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /