1828406 Members
3586 Online
109977 Solutions
New Discussion

Telnet

 
SOLVED
Go to solution
muna_1
Frequent Advisor

Telnet

hello guys

I have problem with telnet service, I did enable it in the server but i can't login

this is my try:

______________________________________

[root@localhost root]# telnet 16.53.208.173
Trying 16.53.208.173...
Connected to 16.53.208.173 (16.53.208.173).
Escape character is '^]'.

localhost (Linux release 2.4.21-15.EL #1 SMP Thu Apr 22 00:13:07 EDT 2004) (3)

login: muna
Password for muna:
login: Cannot resolve network address for KDC in requested realm while getting initial credentials
Login incorrect
login:
______________________________________

I used the root account to login and it didn't work and i have tried the user "muna" and i got the above result

can somebody help plzz ?
30 REPLIES 30
Alexander Chuzhoy
Honored Contributor

Re: Telnet

apparently the server tries to authenticate against some DC.
If you wish to disable this-type authconfig
as root on that machine and uncheck the use Kerberos option...

as for being able to login as root:
this option is disabled by default,since using telnet is very unsecure and dangerous,however if security is not an issue then edit the file /etc/securetty and append to it's end about 20 lines with pts/0
pts/1 pts/2 and so on till pts/19. Each on his own line.
Hope it helps...
muna_1
Frequent Advisor

Re: Telnet

See the following steps:

[root@localhost root]# vi /etc/securetty

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
"/etc/securetty" 23L, 122C 1,1 All


i have no idea :(
Alexander Chuzhoy
Honored Contributor

Re: Telnet

make it look like this:
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
pts/10
pts/11
pts/12
pts/13
pts/14
pts/15
pts/16
pts/17
pts/18
pts/19
Vitaly Karasik_1
Honored Contributor

Re: Telnet

as for KDC messages - may be you activated krb5-telnet service instead of telnet?

In order to use a *bad old* telnet you should see the following output when you run
chkconfig --list|grep telne
krb5-telnet: off
telnet: on
muna_1
Frequent Advisor

Re: Telnet

I lost the connection and I am getting this now

[root@localhost root]# ntsysv
[root@localhost root]# chkconfig --list|grep telne
krb5-telnet: off
telnet: on
[root@localhost root]# telnet 16.53.208.173
Trying 16.53.208.173...
telnet: Unable to connect to remote host: Connection refused
Sergejs Svitnevs
Honored Contributor

Re: Telnet

Seems you have to install standart telnet-server package.

Check out the following link: http://www.unixguide.net/linux/notes01.shtml

Regards,
Sergejs
muna_1
Frequent Advisor

Re: Telnet

I installed telnet service from the RedHat CD

[root@localhost RPMS]# rpm -ivh --force telnet-0.17-26.EL3.2.ia64.rpm
Preparing... ########################################### [100%]
1:telnet ########################################### [100%]

[root@localhost root]# chkconfig --list|grep telne
krb5-telnet: off
telnet: on

[root@localhost root]# telnet 16.53.208.173
Trying 16.53.208.173...
telnet: Unable to connect to remote host: Connection refused


guys what is my mistake I can't understand what's wrong and what exactly I miss here!!!
Alexander Chuzhoy
Honored Contributor

Re: Telnet

try
service iptables stop
and if doesn't help what's your IP?
P.S.
assigning points to previous answers will be a good start and probably will cause many other members to make an effort and to advise you...
Sergejs Svitnevs
Honored Contributor

Re: Telnet

Please add the following to the bottom of your /etc/hosts.allow file:

in.telnetd:ALL

Also make sure that telnet service (/etc/xinetd.d/telnet) has "disable = no" line.

Regards,
Sergejs
muna_1
Frequent Advisor

Re: Telnet

[root@localhost root]# /etc/hosts.allow
-bash: /etc/hosts.allow: Permission denied
[root@localhost root]# /etc/xinetd.d/telnet
-bash: /etc/xinetd.d/telnet: Permission denied
[root@localhost root]#


am the root and no permission for me to access these directories !!!!
Alexander Chuzhoy
Honored Contributor

Re: Telnet

you're trying to execute these files ,instead
do:
cat /etc/hosts.allow
cat /etc/hosts.deny
muna_1
Frequent Advisor

Re: Telnet

[root@localhost root]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

[root@localhost root]# cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!

Can you explain please !
Alexander Chuzhoy
Honored Contributor

Re: Telnet

OK,these files aren't preventing your telnet session.
Maybe you have iptables service enabled.
Try to close it with command:
service iptables stop
then try to open the telnet session again..
Ivan Ferreira
Honored Contributor

Re: Telnet

Why do you want to use this obsolete service?

Use secure shell (SSH) instead.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vitaly Karasik_1
Honored Contributor

Re: Telnet

Muna,

As Sergejs suggested, you should install telnet-server-x.y.z.rpm package in addition to telnet-x.y.z package - the first one is telnet daemon (==server) and the second one is just telnet client.
muna_1
Frequent Advisor

Re: Telnet

Hello again

The problem now I don't know in which disc I can find telnet-server

I have installed one called:
telnet-0.17-26.EL3.2.ia64.rpm

is it the same you meant or ?

I am trying to download the third disc to find out if it includes telnet service....
Sergejs Svitnevs
Honored Contributor

Re: Telnet

You have to install the server program for the telnet remote login protocol.

The package name is:
telnet-server-0.17-26.EL3.3.ia64.rpm

Regards,
Sergejs
muna_1
Frequent Advisor

Re: Telnet

ok I did install the telnet-server

and it's on but still am getting this:

[root@localhost root]# telnet 16.53.208.173
Trying 16.53.208.173...
telnet: Unable to connect to remote host: Connection refused

I don't know what is ma mistake !!
muna_1
Frequent Advisor

Re: Telnet

[root@localhost root]# /etc/xinetd.d/telnet
bash: /etc/xinetd.d/telnet: Permission denied


!!!!!!!!!!!!!!!
Delrish
Trusted Contributor

Re: Telnet

As I know you should enable telnet in xinetd.In /etc/xinetd.d/ directory, should be a file related to telnet(I think its name is telnet).You have to change "disable" option from "yes" to "no" in that file.
"disable = no"
And after thar restart your xinetd.
/etc/init.d/xinetd restart

Flush the iptables rules:
iptables -F
iptebles -t nat -F

Alireza
muna_1
Frequent Advisor

Re: Telnet

[root@localhost root]# ls -l
total 4
-rw-r--r-- 1 root root 17 Dec 6 14:51 user


am I having problem with the permmision ??
Delrish
Trusted Contributor

Re: Telnet

Muna,

What are you talking about? what is this /root/user file? For the purpose of starting telnet service in Linux, please following the below structure:

1.make sure you have installed telnet server and telnet client:
2.rpm â qa | grep telnet
3.enable telnet server in xinetd:
4.cd /etc/xinetd.d/
5.vi telnet
6.change "disable = yes" to "disable = no" in this file.
7.exit vi editor with (Esc + : + x)
8.restart the xinetd daemon:
9./etc/init.d/xinetd restart
10.flush the iptables rules:
11.iptables â t nat â F
12.iptables â F
13.check that telnet listen on port 23 :
14.netstat â an | grep 23
15.Now, you can test it, with your username and password:
16.telnet

Alireza
Delrish
Trusted Contributor
Solution

Re: Telnet

Muna,

What are you talking about? what is this /root/user file? For the purpose of starting telnet service in Linux, please following the below structure:

1.make sure you have installed telnet server and telnet client:
2.rpm -qa | grep telnet
3.enable telnet server in xinetd:
4.cd /etc/xinetd.d/
5.vi telnet
6.change "disable = yes" to "disable = no" in this file.
7.exit vi editor with (Esc + : + x)
8.restart the xinetd daemon:
9./etc/init.d/xinetd restart
10.flush the iptables rules:
11.iptables -t nat -F
12.iptables -F
13.check that telnet listen on port 23 :
14.netstat -an | grep 23
15.Now, you can test it, with your username and password:
16.telnet

Alireza
Indrajit_1
Valued Contributor

Re: Telnet

Hello Muna,

Alireza has given the perfect solution to configre telnet in red hat linux.. it should resolve ur issue..

try this too

#service xinetd restart
#iptables -A

Then u flush out the firewall rules..

cheers
indrajit
Never Ever Give Up