hello guys today we will discuss about secure telnet Server. basically secure telnet is a custom telnet its same copy of telnet server but here we will configure with our customize port.If you want to know how to configure simple telnet server so click on link. before we telnet package in our linux machine. if we want we can install every type package easily so we need to Yum server configuration you just click on link and look how to configure yum.
Here I agree that you have configured YUM server in your machine
For any Tutorial visit linuxtiwary.com
then let we start
Step1 we will install telnet package below commands
[root@localhost ~]# yum install telnet*
Step2 then we will go Xinetd configuration file and look if we found disable is =no so we will do yes . we will open Xinetd file below commands
[root@localhost ~]# vim /etc/xinetd.d/telnet service telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = yes } ~ ~ ~ ~ :wq
Step3 After configuration we are doing copy telnet file
[root@localhost ~]# cp /etc/xinetd.d/telnet /etc/xinetd.d/stelnet
Strp4 now we are going to /etc/services file and create customize port stelnet 8888/tcp #secure telnet
[root@localhost ~]# vim /etc/services 20 # service-name port/protocol [aliases ...] [# comment] 21 stelnet 8888/tcp #secure telnet 22 tcpmux 1/tcp # TCP port service multiplexer 23 tcpmux 1/udp # TCP port service multiplexer 24 rje 5/tcp # Remote Job Entry 25 rje 5/udp # Remote Job Entry 26 echo 7/tcp 27 echo 7/udp 28 discard 9/tcp sink null 29 discard 9/udp sink null 30 systat 11/tcp users 31 systat 11/udp users ~ ~ ~ :wq
Strp4 now we are going to stelnet configuration file. then we will write customize port 8888 and disable=no
[root@localhost ~]# vim /etc/xinetd.d/stelnet service stelnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = no port =8888 } ~ ~ :wq
Step6 after configuration we will restart telnet service and off firewall ,selinux service below commands
[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0
Step7 now go to client side and put command prompt in below commands
telnet 192.168.56.1 8888 (note-put your server machine ip address with customize port)
then put your username and password and login through telnet. if you have any problems in this processso comment here i will solve your problems
Thank you
Writer Vishnu Sharma