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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-28-2003, 08:31 PM
|
#1
|
LQ Newbie
Registered: Jan 2003
Posts: 3
Rep:
|
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
|
|
|
01-28-2003, 09:31 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
01-29-2003, 08:24 PM
|
#3
|
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,847
|
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. :-) )
|
|
|
01-30-2003, 05:38 PM
|
#4
|
LQ Newbie
Registered: Jan 2003
Posts: 3
Original Poster
Rep:
|
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
|
|
|
01-30-2003, 09:09 PM
|
#5
|
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,847
|
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
|
|
|
01-31-2003, 06:13 PM
|
#6
|
Member
Registered: Nov 2002
Location: Chicago, IL
Distribution: Rasbian, Debian, Gentoo, RHEL
Posts: 65
Rep:
|
The normal default is to NOT allow root the ability to telnet (hence the securetty file).
|
|
|
All times are GMT -5. The time now is 05:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|