Via telnet server we can access the any computer remotely. whoever telnet is not good option for the accessing the computer instead of telnet we should use ssh but in this blog we gona talk about telnet
here are the steps
Requirements
- A server with Ubuntu 22.04 installed.
- A non-root user with sudo privileges.
- A static IP address 192.168.0.100 configure on your server.
Remote server configuration Install Telnet Server By default, the Telnet server package is available in the Ubuntu 20.04 default repository. You can install it by just running the following command:
sudo apt install telnetd -y
Once the installation is completed, you can check the status of Telnet service using the following command:
sudo systemctl status inetd Telnet is activation in the configuration file
open file /etc/xinetd.d/telnet by running following command
vim /etc/xinetd.d/telnet
Past following code here
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = yes
}
Restart the telnet
Now, we have to open port23 in the ufw firewall. Execute the below command:
ufw allow 23/tcp
The next step is to reload the firewall to apply the changes. To reload the firewall, execute the below command:
ufw reload
Verify that the service is started and running normally on the server. Typically, you can start the telnet service with the following command.
/etc/init.d/xinetd restart
Test Telnet Connection from Remote System Telnet server is now installed and listening on port 23. Its time to connect the Telnet server from the remote system.
Now, log in to another Ubuntu system and replace ip_address with your remote system which you want to access run the following command:
telnet ip_address
Done!
Top comments (0)