Increase the number of telnet sessions allowed

Q. I am using Fedora Linux and it act as telnet server for our University UNIX lab. We have total 250 computers. At a pick time more than 100 people try to connect server. Only 90 connections are allowed (configured by old admin). Now I want to take this limit to 300 connections or instances. How do I increase the number of telnet sessions allowed?

A. Under Fedora Linux (and old Red Hat Linux or RHEL) xinetd use to control telnet server. The eXtended InterNET Daemon, is an open-source daemon which runs on on many Unix systems and manages Internet-based connectivity. It offers a more secure extension to or version of inetd, the Internet daemon.

xinetd features access control mechanisms, extensive logging capabilities, and the ability to make services available based on time. It can place limits on the number of servers that the system can start, and has deployable defence mechanisms to protect against port scanners, among other things.

You need to edit /etc/xinetd.conf or /etc/xinetd.conf/telnet file and set instances = unlimited:# vi /etc/xinetd.confEdit instances line so that it should read as follows:instances = unlimitedORinstances = 300Restart the xinetd service:# /etc/init.d/xinetd restart

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • Anuj Sep 11, 2006 @ 5:31

    Q: when more than 5 users login to linux machine via telnet, commands are respoded very slowely and users sessin disconnect after some time.

  • 🐧 nixCraft Sep 12, 2006 @ 14:16

    Make sure you have sufficient resources and dns is configured properly.

  • Mark Mar 2, 2007 @ 18:43

    On Linux 4 I was able to just “reload” the xinetd service to get the change to work. I had active telnet sessions I didn’t want to get disconnected during a restart. Otherwise, it worked like a charm.

  • Pradeep Tupili Mar 28, 2007 @ 5:44

    Hi ,

    will you please let me know how to configure the ( or increase the) number of telnet sessions allowed for free BSD version number 3.5.1

    I tried with above mentioned procedure for increasing the number of seesions but i am unable to configure it.It seems the above procedure is for unix/linux operating system.

    please let me know how to configure this in free BSD 3.5.1 (kernel version).

    Thanks in advance


  • Srinivas Jul 13, 2008 @ 18:16

    I am totly new to Cent OS. i got help from about internet connection sharing and i did it. its very helpful. but the thing i need to know. i am able to connect to my mail server pop 110 using #telnet 110 and smtp 25. but i could not connect these port through client computer using by windows XP. please provide help regarding this. yes on this server mySQL database is also running i need to make telnet without disturbing this database.

    Please anyone help me out

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum