LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2003, 07:31 PM   #1
mattns
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
telnet connecting, correct login refused


To start with I am a total newbie on Linux.

I have just gotten Redhat 8.0 installed on an old box.
I have a broadband connection and I am using a router to connect two computers, one XP and new one RH8.
I can ping the linux box.
I have gotten Telnet up and running on it using info in these forms, and when I telnet to the box I get prompted to login.

This is where the problem is:
I try to login, as root, and I know I am using the correct password and have verified it. Yet I get 'Login Incorrect' everytime. Any Ideas?

I also realize 2 things, most people are going to tell me to move to ssh, which I probably will shortly, I would just like to get the basics working since I seem close. Also that logging in as root is a bad idea except for admin, I was going to learn to create new users as my first task. Could logging in as root be the problem?

Thanks for any help
Matt
 
Old 01-28-2003, 08:31 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Yes. Use ssh. You can also login as a regular user and then 'su' to root. Your best bet is to kick the habit now and install ssh.
 
Old 01-29-2003, 07:24 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Re: telnet connecting, correct login refused

Quote:
Originally posted by mattns

I have gotten Telnet up and running on it using info in these forms, and when I telnet to the box I get prompted to login.

This is where the problem is:
I try to login, as root, and I know I am using the correct password and have verified it. Yet I get 'Login Incorrect' everytime. Any Ideas?

I also realize 2 things, most people are going to tell me to move to ssh, which
You do know that you should be using ssh don't you? (Sorry... couldn't resist.)

I think whats happening is that the system is not recognizing network logins as root. See the manpage for `securetty'. You will probably have to add `pts' to that file to allow logins as root. Or... you could login as another user and `su' to root. That works on Linux (but not on all UNIXes). Still, ssh is the way to go. That way you don't need to worry as much about folks getting into your root account.

BTW, did you force telnet to run? I have RH8.0 systems that, out of the box, disable the telnet protocol. I can't even get a login prompt. (I just use ssh instead. :-) )
 
Old 01-30-2003, 04:38 PM   #4
mattns
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the responses. Sure enough that once I created a new user everything worked fine, and YES, my first task is to get ssh running

rnturn, just to satisfy your curiosity, if you go to /etc/xinetd.d/
and vi the telnet file you will notice that it is disabled by default. just change 'disable = yes' to 'disable = no' and it should work fine. enjoy
 
Old 01-30-2003, 08:09 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally posted by mattns

rnturn, just to satisfy your curiosity, if you go to /etc/xinetd.d/
and vi the telnet file you will notice that it is disabled by default. just change 'disable = yes' to 'disable = no' and it should work fine. enjoy
That's OK. (Knew about that item in the xinet.d config.) I like ssh over telnet anyway. I found it a bit annoying at first but saw the benefit. Even inside my firewall. At least I don't have to worry about some odd side effect of an iptables rule that accidently lets telnet in or something.

Cheers.
Rick
 
Old 01-31-2003, 05:13 PM   #6
rockdw
Member
 
Registered: Nov 2002
Location: Chicago, IL
Distribution: Rasbian, Debian, Gentoo, RHEL
Posts: 65

Rep: Reputation: 21
The normal default is to NOT allow root the ability to telnet (hence the securetty file).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet connection refused hcmk Linux - Networking 13 09-02-2006 02:31 PM
telnet connection refused turbo_acura Linux - Networking 8 11-21-2004 09:07 AM
Telnet connection refused naveenpn Linux - Networking 2 02-17-2004 07:16 AM
telnet: Connection refused hnash53 Linux - Networking 2 01-23-2004 02:12 PM
Telnet: Connection Refused Erice60rng Linux - Security 7 01-20-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration