How to Install and Use Telnet Server on Ubuntu 12.04Telnet is a terminal emulation program that allows you to access another computer on the Internet or on a local network by logging on to the remote system. Telnet is a client-server protocol that connects to port 23 of the Transmission Control Protocol. You can also use Telnet to check open ports on a remote system.
Telnet Server Ubuntu 12.04 Downloadl
RequirementsA server with Ubuntu 12.04 installed.A non-root user with sudo privileges.A static IP address 192.168.0.100 configure on your server.Install Telnet ServerBy default, the Telnet server package is available in the Ubuntu 12.04 default repository. You can install it by just running the following command:
sudo apt install telnetd -yOnce the installation is completed, you can check the status of Telnet service using the following command:
sudo service xinetd statusYou should see the following output:
xinetd (pid 1158) is running...Test Telnet Connection from Remote SystemTelnet server is now installed and listening on port 23. It's time to connect the Telnet server from the remote system.
Now, log in to another Ubuntu system and run the following command:
telnet 192.168.0.100You will be asked to enter your username and password. After successful authentication, you should see the following output:
Trying 192.168.0.100...Connected to 192.168.0.100.Escape character is '^]'.Ubuntu 12.04 LTSubuntu1204 login: hiteshPassword: Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) * Documentation:
https://help.ubuntu.com/Last login: Thu Aug 4 09:10:22 2022 from 192.168.0.101hitesh ubuntu1204:~$ You are now connected to the Telnet server and can run any commands on the remote system.
Use telnet to Test Open PortsYou can also use Telnet to test open ports on a remote system.
For example, to test if port 80 (HTTP) is open on a web server, you can run the following command:
telnet
www.example.com 80If the port is open, you should see something like this:
Trying 93.184.216.34...Connected to www.example.com.Escape character is '^]'.You can then type some HTTP commands and see the response from the web server.
Use Telnet command to test a Mail ServerYou can also use Telnet to test a mail server by connecting to port 25 (SMTP).
For example, to test if you can send an email from your mail server, you can run the following command:
telnet
mail.example.com 25If the port is open, you should see something like this:
Trying 93.184.216.34...Connected to mail.example.com.Escape character is '^]'.220
mail.example.com ESMTP PostfixYou can then type some SMTP commands and see the response from the mail server.
35727fac0c