Your friendly shell to thrwart invaders.
This simple shell will prematurely end SSH connections.
- Add this to
/usr/bin/nopeshell
or simlar path as root. chmod a+x
this file.- Add this file to
/etc/shells
so it is official! - Set users to login with this shell.
- Profit! Or maybe just don't get hacked..?
sudo curl -L "https://raw.githubusercontent.com/subfission/nopeshell/master/nopeshell" > /usr/bin/nopeshell && sudo chmod a+x /usr/bin/nopeshell && echo '/usr/bin/nopeshell' >> /ets/shells && echo "done."
- MacOS 10.8+
- Linux