mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
rewrite 2fa_enable, delete ssh_enable
This commit is contained in:
parent
211894753f
commit
71b838c6e2
1 changed files with 0 additions and 32 deletions
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
########################################################
|
|
||||||
# T-Pot #
|
|
||||||
# SSH enable script #
|
|
||||||
# #
|
|
||||||
# v0.01 by mo, DTAG, 2015-06-15 #
|
|
||||||
########################################################
|
|
||||||
|
|
||||||
if ! [ -f /etc/init/ssh.override ];
|
|
||||||
then echo "### SSH is already enabled. Exiting."
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "### This script will enable the ssh service (default port tcp/64295)."
|
|
||||||
echo "### Password authentication is disabled by default."
|
|
||||||
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
echo -n "### Do you want to continue (y/n)? "; read myANSWER;
|
|
||||||
case $myANSWER in
|
|
||||||
n)
|
|
||||||
echo "### Exiting."
|
|
||||||
exit 0;
|
|
||||||
;;
|
|
||||||
y)
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
sudo rm /etc/init/ssh.override
|
|
||||||
sudo service ssh start
|
|
Loading…
Reference in a new issue