mirror of
https://github.com/FAUSheppy/config
synced 2025-12-07 15:31:35 +01:00
some addition scripts
This commit is contained in:
7
other/sshcheck.sh
Normal file
7
other/sshcheck.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
SESSION_TYPE=remote/ssh
|
||||
else
|
||||
case $(ps -o comm= -p $PPID) in
|
||||
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
|
||||
esac
|
||||
fi
|
||||
Reference in New Issue
Block a user