Networking Forums

Networking Forums > Computer Networking > Linux Networking > Telnet Problem

Reply
Thread Tools Display Modes

Telnet Problem

 
 
Joe Hesse
Guest
Posts: n/a

 
      08-27-2007, 05:08 PM
Hi,

I know telnet is not secure, that is not the problem.

I set up a telnet server on a Fedora 7 Linux system using xinetd. I believe
I have all the configuration files correctly set since I can successfully
do:
$ telnet localhost
and establish a successful telnet connection on the same machine where the
telnet server is running.

Xinetd is running and my /etc/xinetd.d/telnet file is:

# 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
}

The problem is when I try to connect to the telnet server from one or more
client computers on the same local network. Here is what happens.

$ telnet 192.168.0.100
Trying 192.168.0.100...
Connected to 192.168.0.100.
Escape character is '^]'.
getnameinfo: localhost: Success
Temporary failure in name resolution: Illegal seek
Connection closed by foreign host.
$

Firewalls and SELinux are off. I always connect with an IP address, not a
fqdn. I can access the telnet server computer with ssh and ftp.

I would appreciate help.

Thank you,
Joe Hesse


 
Reply With Quote
 
 
 
 
Mark Hobley
Guest
Posts: n/a

 
      08-28-2007, 07:08 AM
Joe Hesse <(E-Mail Removed)> wrote:
>
> The problem is when I try to connect to the telnet server from one or more
> client computers on the same local network. Here is what happens.
>
> $ telnet 192.168.0.100
> Trying 192.168.0.100...
> Connected to 192.168.0.100.
> Escape character is '^]'.
> getnameinfo: localhost: Success
> Temporary failure in name resolution: Illegal seek
> Connection closed by foreign host.


I am taking a complete guess here, but try this. On both machines, edit
/etc/hosts and add the line:

192.168.0.100 scooby.joehesse.lan scooby

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

 
Reply With Quote
 
Frank Winans
Guest
Posts: n/a

 
      08-29-2007, 05:17 AM
"Mark Hobley" wrote
> Joe Hesse wrote:
> >
> > The problem is when I try to connect to the telnet server from one or more
> > client computers on the same local network. Here is what happens.
> >
> > $ telnet 192.168.0.100
> > Trying 192.168.0.100...
> > Connected to 192.168.0.100.
> > Escape character is '^]'.
> > getnameinfo: localhost: Success
> > Temporary failure in name resolution: Illegal seek
> > Connection closed by foreign host.

>
> I am taking a complete guess here, but try this. On both machines, edit
> /etc/hosts and add the line:
>
> 192.168.0.100 scooby.joehesse.lan scooby
>
> Regards,
>
> Mark.
>
> --
> Mark Hobley
> 393 Quinton Road West
> QUINTON
> Birmingham
> B32 1QE
>
> Email: markhobley at hotpop dot donottypethisbit com
>
> http://markhobley.yi.org/
>

I second the notion; the message is probably issued by the telnet server box,
doing some name or ipaddress-to-name lookup, and hopefully priming the
hosts file will make that lookup succeed. If that is a good guess, then you
can speed up your testing by sitting at the telnet server console and making
sure that you don't get the dreaded "illegal seek" response when you try to
do host 192.168.0.100 or whatever it is you type to get a name for a known
ip address, and that you can attempt ping -c 1 scooby
without it complaining it cannot convert that name to an ip address. Erm, scooby
should probably be changed here to whatever the telnet distant client claims is
his hostname. Also, see if you can find a logged barf in like /var/log/messages
I guess when you do the doomed telnet attempt, to firm up the guess that this is
a dns lookup failure; the context of such a log entry may help suggest how to
either prevent or facilitate this seemingly overzealous chunk of the operating system.
Umm, if the new entry in /etc/hosts file on telnet server box doesn't enable the dns
tests I suggested, you may need to tweak something like /etc/nsswitch.conf so
hosts file takes priority over bind dns info...

Other info I googled suggested switching to a kerberos telnet server, but I wonder
if that would be rigged to work ok even if you don't use kerberos at your shop?

I'm guessing that selinux or something is just wanting to be helpful and log the start
of a telnet session with the optional details of "what is the hostname?" of the distant telnet
client box. Also, it is indeed cryptic to see the term 'invalid seek', but I did see the
phrase mentioned in some blog referring to some weird ldap
thing, about trying to get some associated group membership info where the group it
defaults to did not exist...

As long as you're already scoffing at accepted security practices, you _do_ know that
linux is going to lie to you and claim 'that is the wrong password!' when you're logging in
as userid root, right? Because you're coming in on 'device' pts/0 or pts/1 or etc...
and those aren't cited in /etc/securetty file. In truly 'trust me, this is a friendly
campus'
situations, I just delete or rename /etc/securetty and rhel4 at least has been willing to let
me telnet in as root on any device whatsoever, just some minor gripes in log files about the
missing securetty...


 
Reply With Quote
 
Joe Hesse
Guest
Posts: n/a

 
      08-29-2007, 04:31 PM

"Joe Hesse" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I know telnet is not secure, that is not the problem.
>
> I set up a telnet server on a Fedora 7 Linux system using xinetd. I
> believe I have all the configuration files correctly set since I can
> successfully do:
> $ telnet localhost
> and establish a successful telnet connection on the same machine where the
> telnet server is running.
>
> Xinetd is running and my /etc/xinetd.d/telnet file is:
>
> # 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
> }
>
> The problem is when I try to connect to the telnet server from one or more
> client computers on the same local network. Here is what happens.
>
> $ telnet 192.168.0.100
> Trying 192.168.0.100...
> Connected to 192.168.0.100.
> Escape character is '^]'.
> getnameinfo: localhost: Success
> Temporary failure in name resolution: Illegal seek
> Connection closed by foreign host.
> $
>
> Firewalls and SELinux are off. I always connect with an IP address, not a
> fqdn. I can access the telnet server computer with ssh and ftp.
>
> I would appreciate help.
>
> Thank you,
> Joe Hesse
>
>

I appreciate everyone's help. I managed to fix the problem and feel
embarassed that I didn't recognize the problem sooner. Here is the summary.
1. I removed a Windows XP computer from my network and rebooted everything
else. Telnet worked great!
2. My virus protection expired from Windows so I subscribed to a new virus
service, found a "High Threat" virus and removed it.
3. Telnet works great, from Windows to a telnet server or Linux to a telnet
server.
Thanks,
Joe


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet problem albert Linux Networking 9 11-04-2004 01:31 PM
strange telnet problem Sacco Linux Networking 3 10-29-2004 12:16 PM
a problem with telnet Roberto Sacchetti Linux Networking 6 07-08-2004 01:06 PM
telnet/ftp problem kiran Linux Networking 0 12-18-2003 02:51 PM
telnet problem Weiguang Shi Linux Networking 10 12-05-2003 12:51 AM



1 2 3 4 5 6 7 8 9 10 11