Skip to content

Instantly share code, notes, and snippets.

@tknv
Created March 11, 2020 06:02
Show Gist options
  • Save tknv/ba0a7abf153cd6ef2ebbf4f3ef57e724 to your computer and use it in GitHub Desktop.
Save tknv/ba0a7abf153cd6ef2ebbf4f3ef57e724 to your computer and use it in GitHub Desktop.
/etc/xinetd.d/telnet
service telnet
{
disable = no
socket_type = stream
protocol = tcp
port = 23
user = root
wait = no
instances = 10
log_type = FILE /var/log/ast
log_on_success += PID HOST DURATION
log_on_failure = HOST
server = /home/foo/382PyENV/bin/python
# server = /usr/bin/python3
server_args = -OO /home/foo/hello.py
env = PYTHONHOME=/home/foo/382PyENV
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment