WHAT’S STELNET AND HOW TO CONFIGURE STELNET IN LINUX AS SERVER AND WINDOWS OR ANDROID AS CLIENT

In this post we will learn what’s stelnet and how to configure stelnet in linux as server and windows and android as client .

 

Stelnet stands for secure telnet . It is basically used for remote login but in secure way .

[root@deepit ~]# yum install telnet*
Loaded plugins: rhnplugin, security
Repository 'a' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
a                                                                                      | 1.3 kB     00:00
a/primary                                                                              | 732 kB     00:00
a                                                                                                   2292/2292
Setting up Install Process
Package 1:telnet-0.17-39.el5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.i386 1:0.17-39.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================
 Package                        Arch                  Version                        Repository          Size
==============================================================================================================
Installing:
 telnet-server                  i386                  1:0.17-39.el5                  a                   35 k
Transaction Summary
==============================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 35 k
Is this ok [y/N]: y
  • It will calculate file size and ask you whether you wanna install it or not  . Type y hit ENTER . Within a seconds package will be installed 
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : telnet-server                                                                          1/1
Installed:
  telnet-server.i386 1:0.17-39.el5
Complete!
  • As you know telnet configuration file is /etc/xinetd.d/telnet .
  • Stelnet is same as telnet but is more secure . So we will use same configuration file but in different folder .
  • Copy telnet configuration file in path /etc/xinetd.d/stelnet .
[root@deepit ~]# cp /etc/xinetd.d/telnet /etc/xinetd.d/stelnet
  • Now open this stelnet configuration file .
[root@deepit ~]# vim /etc/xinetd.d/stelnet
  • When you will open stelnet configuration file you will find same telnet configuration  because we coied its configuation file to stelnet .
  • But we need to make some changes for stelnet
# 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
  • service will be telnet , so add s in front of telnet and make it stelnet
  • Disable should be no 
  • Then add port for stelnet services . Stelnet works on different port that’s why it’s secure .
  • I’m giving its port 8080 .
service stelnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
        port            = 8080
  • Press ESC and type :wq ( to save and quit)
~
~
~
:wq
  • Now open services file .
[root@deepit ~]# vim /etc/services
  • Here you will all services that is available on your system  with its port number
  • Just below telnet entry add stelnet line with port number /tcp      Then # secure telnet
ftp-data        20/tcp
ftp-data        20/udp
# 21 is registered to ftp, but also used by fsp
ftp             21/tcp
ftp             21/udp          fsp fspd
ssh             22/tcp                          # SSH Remote Login Protocol
ssh             22/udp                          # SSH Remote Login Protocol
telnet          23/tcp
telnet          23/udp
stelnet         8080/tcp                        #secure telnet
# 24 - private mail system
lmtp            24/tcp                          # LMTP Mail Delivery
lmtp            24/udp                          # LMTP Mail Delivery
smtp            25/tcp          mail
smtp            25/udp          mail
time            37/tcp          timserver

stelnet in linux

  • Press ESC and type :wq ( to save and quit )
:wq
  • We need  to disable firewall and se linux settings to stelnet work
  • To  disable linux firewall settings  =     iptables -F
  • To disable se( security enhance )  settings   =    setenforce 0
[root@deepit ~]# iptables -F
[root@deepit ~]# setenforce 0
  • Now start the service
[root@deepit ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
  • Check the ip address of server machine by below commands

–   ip    a

–   ifconfig 

 

NOW COMES THE CLIENT ROLE :

WINDOWS 

  • First go to control panel and go to PROGRAMS 

control panel

  • Under programs and features section , select Turn windows features on or off .

control panel

  • One windows will pop up on your screen . From the list of Windows features tick mark the Telnet client . And select OK button .

control panel

  • System will install telnet client features . So Windows would be able to connect through server machine and able to play client role .

control panel installation

  • Open cmd ( admin)
  • Type  –    telnet      ipaddress of server machine      port number
  • In this my server machine ip is 192.168.1.103
  • And i have given earlier port number in configuration  file as 8080

stelnet in windows

  • Within few seconds you will be connected .
  • Enter user that Admin have created for clients to connect through stelnet
  • You won’t be able to connect through root , Later i’ll show how to do that .
  • So now i’m connecting with user deepit and giving its password to connect

stelnet in windows

  • You will be connected . Like i’m connected with my user deepit .

stelnet in windows

ANDROID 

  • Install the app SIMPLE TELNET CLIENT from google play store .
  • One more app is there named terminus .

telnet app

  • When you will launch telnet app you have to write ip address and port number 
  • Like i’m having ip 192.168.1.103 and my port number is 8080.
  • Then tap on connect button.

stelnet in android

  • Within few you will be connected .
  • Now same login  with user deepit and giving its password to enter server system through stelnet .

stelnet in android

  • You can check from below screenshot that i’m connected with my server machine .

stelnet in android

Now if you want to make root login your stelnet services  come back to server machine

And go to  /etc/securetty through vim

[root@deepit ~]# vim /etc/securetty

Now make entry as shown below

pts /0  , /1  , /2  , /3  , /4  , / 5

tty6
tty7
tty8
tty9
tty10
tty11
pts /0
pts /1
pts /2
pts /3
~
~
~
~
  • Press ESC and type :wq ( to save and quit )
~
~
~
:wq

Now try to login with root . If you won’t be able to login , then restart the xinetd service

 

To stop stelnet service type

[root@deepit ~]# service xinetd stop
Stopping xinetd:                                           [  OK  ]

 

HOW TO CREATE VIRTUAL IP ADDRESS AND CONFIGURE APACHE VIRTUAL HOSTING IN LINUX .HOW TO CREATE VIRTUAL IP ADDRESS AND CONFIGURE APACHE VIRTUAL HOSTING IN LINUX .

WHAT IS VNC SERVER . HOW TO CONFIGURE VNC SERVER IN LINUX AS SERVER AND WINDOWS, ANDROID , IPHONE OR IPAD AS CLIENT.

HOW TO INSTALL WINDOWS SOFTWARE IN LINUX THROUGH CROSSOVER .

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