PoiNtEr->: Install and Configure Telnet Server in Ubuntu-12.04

                             Difference between a dream and an aim. A dream requires soundless sleep, whereas an aim requires sleepless efforts.

Search This Blog

Friday, June 8, 2012

Install and Configure Telnet Server in Ubuntu-12.04



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 xinetd telnetd


This will complete the installation.Now you Restart inetd service using the following command


sudo /etc/init.d/inetd restart


Once installed now go to terminal and follow following instruction
1:Create /etc/inetd.conf ,if it already exist then no need to create just open it with your favorite editor


sudo vi /etc/inetd.conf


add following line in it if its already there then uncomment it: 

telnet         stream  tcp     nowait  telnetd.telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd

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



vishal@Eva:~$ telnet localhost
Trying 192.168.2.200...
Connected to localhost.
Escape character is '^]'.
Ubuntu 12.04 LTS
Eva.localhost login: vishal
Password: 
Last login: Wed Jun  6 12:26:51 IST 2012 on tty2
Welcome to Ubuntu 12.04 LTS (GNU/Linux 2.6.38-10-generic i686)


 * Documentation:  https://help.ubuntu.com/


75 packages can be updated.
25 updates are security updates.


*** /dev/sda5 will be checked for errors at next reboot ***


You have new mail.
vishal@Eva:~$ 

you can also try it from other system or from virtual machine(xp or any) to connect by using 
“telnet ip address” of linux machine which is running telnet sever,after this it will ask you for login and thats it !!

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.
like:

vishal@Eva:~$ w
 12:36:11 up  2:47,  4 users,  load average: 0.58, 0.47, 0.65
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
vishal   pts/1    :0               10:05   43:05   0.40s  2:21  gnome-terminal
vishal   pts/4    :0               11:53   42:57   0.82s  2:21  gnome-terminal
vishal   pts/5    localhost    12:35    0.00s  0.75s  0.01s w
vishal   pts/6    :0               12:16    0.00s  0.44s  0.00s telnet localhost

No comments:

Post a Comment