I’m building a telnet application which uses GNU Readline to handle console input. Current implementation forks a new child for every new client connection – this assigns one readline instance for each child process. Fork-type network servers are not the most efficient, so I’d like to use po…
Tag: telnet
How to keep telnet connection alive from client side
I have a device as a telnet server but drops the connection if no packet is received in 60 seconds, for some reason this behavior cannot be changed. Putty has a feature to send null packets to the server periodically to keep the session alive, which works fine for me. But some times I have to telnet to the de…
Xinetd server connection refused
I’m using xinetd on Fedora. I put a file called telnet inside the etc/xinetd.d folder with the following content: I know xinetd is running because when I do service xinetd status it says active (running). When I do netstat -nltp nothing seems to be running on port 23 and ‘telnet localhost’ r…
Pass Telnet Command to SSH in Bash Script
I’m trying to write a bash to first ssh into a server and then telnet from that server to a ElastiCache Redis endpoint. My Code is the following: telnet.sh I would like to call my bash script and have the user interactively be connected to the Redis Cluster so that the user can enter redis cli commands …
How to insert a delay between pipelining commands in a bash script. E.g. cat file | telnet mail.domain.com 25
I have a bash script that creates a file and I would like to send an email at the end via telnet. However sometimes it will execute and sometimes it won’t. The command at the end is At the receiving server I see in mail.log the following error when it fails: The same script works perfectly if instead of…