mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
fixes #973
This commit is contained in:
@ -218,8 +218,13 @@ echo
|
||||
|
||||
# Ensure some defaults
|
||||
echo "### Ensure some T-Pot defaults with regard to some folders, permissions and configs."
|
||||
sed -i '/^port/Id' /etc/ssh/sshd_config
|
||||
echo "Port 64295" >> /etc/ssh/sshd_config
|
||||
sed -i '/^port/I,$d' /etc/ssh/sshd_config
|
||||
tee -a /etc/ssh/sshd_config << EOF
|
||||
Port 64295
|
||||
Match Group tpotlogs
|
||||
PermitOpen 127.0.0.1:64305
|
||||
ForceCommand /usr/bin/false
|
||||
EOF
|
||||
echo
|
||||
|
||||
### Ensure creation of T-Pot related folders, just in case
|
||||
|
Reference in New Issue
Block a user