Created
March 2, 2018 23:10
-
-
Save tonejito/ab81faabf841fbd18cd24df59b79a251 to your computer and use it in GitHub Desktop.
Set SSH banner with "Insert coin" message. Like the arcade machines do!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# = ^ . ^ = | |
printf '\t%s\n' "Insert coin" > /etc/issue.net && \ | |
sed -i 's/^#\(Banner\)/\1/g' /etc/ssh/sshd_config && \ | |
service ssh reload && \ | |
systemctl --full status ssh | |
cat << EOF | |
Now connect to localhost via ssh(1) to check if this worked! | |
-- | |
= ^ . ^ = | |
EOF |
Author
tonejito
commented
Mar 2, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment