echo"AllowGroups sudo sshuser"| tee -a /etc/ssh/sshd_config > /dev/null
if[ -z $(groups $user| grep "sshuser")];then
if[ -z "$(groups $user| grep sshuser)"];then
adduser $user sshuser
fi
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.