WHAT IS TELNET AND HOW TO CONFIGURE TELNET IN LINUX AS SERVER AND WINDOWS OR ANDROID AS CLIENT.

Telnet is a  method used for remote login, In this post we will make walk you through the steps of installing and configuring telnet server on a Redhat Linux machine

telnet server and client

FOLLOW THESE STEPS :

  • First we will install telnet package through yum .If you guys want to know what is yum and how to configure yum WHAT IS YUM AND HOW TO CONFIGURE YUM IN LINUX.
  • . Because before configuring telnet you must have yum already installed in your system.
[root@localhost ~]# yum install telnet*
Loaded plugins: rhnplugin, security
                                                                                   | 1.3 kB     00:00
Setting up Install Process
Package 1:telnet-server-0.17-39.el5.i386 already installed and latest version
Package 1:telnet-0.17-39.el5.i386 already installed and latest version
Nothing to do
  • Then we have to change some settings in telnet configuration file.
[root@localhost ~]# vim /etc/xinetd.d/telnet
  • Just we have to do small change, do you see disable is yes  in this configuration file.
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = yes
}
~
~
  • press i and go to insert mode. After disable write no and save and quit.
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}
~
~
~
  • To save and quit press ESC then :wq as shown below.
~
~
:wq
  • Now we have to start the telnet service .
[root@localhost ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
  • We will make it on, after its boot and add one user for client login
[root@localhost ~]# chkconfig xinetd on
[root@localhost ~]# useradd Deepit
[root@localhost ~]# passwd -d Deepit
Removing password for user Deepit.
passwd: Success
  • Let’s check whether firewall settings is on .
[root@localhost ~]# iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     esp  --  anywhere             anywhere
ACCEPT     ah   --  anywhere             anywhere
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:mdns
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
  • It’s on, It’s showing Accept before every result that means firewall is on.
  • Lets turn firewall and security enchance linux off .
[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Now in client side

  • In your Windows open control panel and click on PROGRAMS .

control panel

  • In PROGRAMS AND FEATURE you will see TUrn WINdows feature on or off , click on it.

controlpanel

  • Find Telnet client option and select it . Then hit the ok button . It will install telnet client features in your system .

control panel

  • Then Open your command prompt and type telnet and ip address of your linux server system.

command prompt

  • It will connect you to linux server machine .

cmd

  • Login with the  username you created for client .

8

  • Now i’m going to create one file . And it will automatically saved into server machine not in client machine .

cmd

  • Now i’m in linux system and going into Deepit user folder . All user are saved  in /home .
[root@localhost ~]# cd /home/Deepit
[root@localhost Deepit]# ls
a.txt

SAME you can make your linux client by typing telnet ip address on your linux client machine.

Now let’s learn how to configure telnet in android

  • First download and  install the Telnet app which is free from google play store .

telnet app

  • When you start the app you have to provide the ip address of the linux server machine. Then press connect button.

telnet app

  • Then it will connect to server and ask you login and password . I’m login in with Deepit user i’v created.

telnet app

  • When you will type the correct username and password . That means your android is now client

telnet app

  • I’m creating one file from android client .

telnet app

  • Now i’m in Linux server machine and you can see all file are saved in server machine .
[root@localhost ~]# cd /home/Deepit/
[root@localhost Deepit]# ls
a.txt  b.txt

HOW TO SPLIT VG (VOLUME GROUP) IN LINUX.

HOW TO CONFIGURE RAID WITH SPARE DEVICES

HOW TO BREAK FILE INTO MANY FILES TO SECURE YOUR DATA IN LINUX

8 thoughts on “WHAT IS TELNET AND HOW TO CONFIGURE TELNET IN LINUX AS SERVER AND WINDOWS OR ANDROID AS CLIENT.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s