If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Install Telnet Server in Ubuntu
You will find the Telnet server installation packages in Synaptic under the telnetd package.If you want to install telnet server package you can also use the following command
sudo apt-get install telnetd
This will complete the installation.Now you Restart inetd service using the following command
sudo /etc/init.d/inetd restart
Once installed, select Administration, Services and enable Telnet
you can now fire up your other Linux box and type telnet . You are prompted to enter your username and password. The whole conversation should look like this
telnet 192.168.0.1
Trying 192.168.0.1…
Connected to 192.168.0.1 (192.168.0.1)
Escape character is ‘^]’.
Welcome to telnetserver
Running Ubuntu LAMP server
* All access is logged *
login: admin12
Password:
Last login: Sat Dec 25 1:05:1 from 192.168.0.1
[admin12@telnetserver ~]$
If you are using windows machine you can download telnet clients if you like like putty and teraterm to connect.
Note that the server responds with Welcome to telnetserver, running Ubuntu LAMP server, which is a customized message. Your machine will probably respond with Ubuntu and some version information. This is insecure: giving away version numbers is never a smart move. In fact, even saying Ubuntu is questionable. Edit the issue and issue.net files in your /etc directory to change these messages.
Running the w command now shows you as connecting from the external IP address.
Telnet is fast but also insecure. It sends all your text, including your password, in plain text that can be read by anyone with the right tools. SSH, on the other hand, encrypts all your communication and so is more resource-intensive but secureeven a government security agency sniffing your packets for some reason would still have a hard time cracking the encryption.If you are looking for SSH server configuration in ubuntu check here




Thanks for the nice and simple guide…
A little note that might help a newbie (like me). It seems that inetd is not installed by default on Ubuntu. At least that was the case with me on Edgy. I had to install the netkit-inetd package (standard shipped with Ubuntu) and this installed the standard inetd components.
Here is the correct way to set up a telnet server:
DON’T.
Use SSH. There are clients for every platform
I also needed to install the netkit-inetd package to get the telnet server to work. I’m using Dapper LTS.
you know, sometimes telnetd is needed period. yes, we all know that it old, but like i said…sometimes it’s needed and one doesn’t always have a choice…dig?
don’t listen to what B is trying to tell you. he’s a noob no doubt.
hey could someone help ?
I tried to Restart inetd service but am getting this error
-bash: /etc/init.d/inetd: No such file or directory
As insecure as it is, sometimes Telnet is needed. For instance, my workplace firewall blocks outgoing traffic on port 22 and only has basic ports open for Telnet, FTP, and HTTP. It’s a dumb blocking rule, but they won’t open it.
If you only need telnet access from certain IPs like I do, you can lock it down some by using /etc/hosts.deny and /etc/hosts.allow.
On Ubuntu 7.10 I found we have to install inetutils-inetd and do /etc/init.d/inetutils-inetd restart. Rest of the steps still hold.
Eek !! Telnet. Do not use it.
* @Deiussum : the port 22 is blocked by the firewall ? Use SSH on the Telnet port.
* You need a SSH client for Windows ? I can think of two softwares :
– PuTTY : A SSH client : http://www.chiark.greenend.org.uk/%7Esgtatham/putty/
– WinSCP : A SCP client (for file transfers using SSH) : http://winscp.net/eng/docs/lang:fr
I’m just going to reinforce that on some occasions there is no other choice but to use telnet. For example I need it becuase my work uses Win XP and AD and prevents all unathorised .exe and installations so all I can use is hyperterminal. Which does not connect to SSH.
there is a type-o above.
sudo /etc/init.d/inetd restart
should read (on 8.04 anyway)
sudo /etc/init.d/openbsd-inetd restart
http://packages.ubuntu.com/fr/intrepid/xinetd
/etc/init.d/xinetd restart
What are the caveats if I restrict telnetd to an openvpn tun adapter? I think using ssh over a trusted vpn is overkill …efficiency-wise.