LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-03-2006, 12:01 PM   #1
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Rep: Reputation: 15
Lost telnet login when changing to 2.6 ker


With Slack 10.2 and 2.4.31 I could log in from my windows machine through telnet on port 23.

I changed to kernel 2.6.13 and loaded the kernel modules and everything seemed fine.... except I lost the telnet login. Telnet server is running, because I can upload and download with other programs that use it.

The conf files thatI know about seem to be OK.

In the end, the question is, "How can I make aconsole available through telnet?". Inittab is the same as it was before and also inetd.conf

Something in modules must have stepped on something!
 
Old 03-03-2006, 12:43 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
can you telnet in on localhost?
does ssh work?
 
Old 03-03-2006, 01:27 PM   #3
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
You really should be using SSH. Telnet is massively insecure.
 
Old 03-04-2006, 07:08 AM   #4
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Wink telnet login

telnet on localhost responds with
Escape character is '^]'
Connection closed by foreign host.

The telnet from another machine actually seems to find the server and seems to wait for an input, but on typing the first character it exits. It doesn't output thelogin message either.

I'm sorry, I've been a programmer for 30 years.... but I'm relatively new to Linux ( although I do wonder why I waited so long ) so forgive this next question.....

What's ssh. Secure shell isn't it?

Anyways, security isn't really an issue. The unit is an embedded box on a tecnical network that doesn't really have any "private" information. Hackers aren't really a big problem, althugh virus control might be... but I don't know much about Linux viruses yet...

Dave
 
Old 03-04-2006, 09:39 AM   #5
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
hmm.

read `man in.telnetd`
then edit /etc/inetd.conf
and put it into debug mode
 
Old 03-05-2006, 01:27 PM   #6
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Part way there

Kodon,

That got me part way there...

In debug, I saw that I could connect on port 40, so I thought that maybe somebody else had 23 taken. So i changed /etc/services to put telnet on 40, and got the same thing as before.

If I remove any reference to telnet in /etc/services, and start it in rc.local in the background with port 23, everything works fine... but I imagine that's not the best way to be doing it.

Whether it's commented out or not in inet.conf doesn't seem to make a difference, as long as I leave it out of services. ??

So....??
 
Old 03-05-2006, 03:19 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
SSH is much more secure, but that isn't the only advantage. SSH is also much more flexible than telnet. Things like SCP, SFTP, FreeNX, etc.

RSA key login is also nice to have when working frequently on a machine, as is being able to run commands on the remote machine without actually having to login first.
 
Old 03-05-2006, 11:02 PM   #8
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
strange
not sure why standalone would work
and not the tcp wrapper

is it just telnet or everything that uses a wrapper?
 
Old 03-07-2006, 05:46 AM   #9
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Wrapper's OK!

Checked inetd and it's fine. I can run systat and netstat for instance remotely without problems.

Perhaps something in the telnet server is slightly incompatible with ker 2.6. Or I have a telnet version compatible to 2.4, but while running 2.6 kernel. ?
 
Old 03-07-2006, 08:53 AM   #10
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
i'm running: 2.6.15.5, tcpip-0.17-i486-36, inetd-1.79s-i486-7
without any problems...afaik, none of my kernels gave me any
problems.

did you roll this kernel yourself?
if so, double-check your config...
 
Old 03-08-2006, 12:02 PM   #11
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks anyways

Kodon,

I've got 2.6.13, tcpip-0.17-i486-35 and inetd-1.79s-i486-7 so it's in the ballpark. Don't know, maybe I should reinstall tcpip or inetd. My kernel was pre-fabbed by Slack

Actually I'm not sure if I lost the telnetd console connection with the upgrade from Slack 10.0 to 10.2 or with the change from ker 2.4.31 to 2.6.13.

I'll struggle through until I find the solution.... best way to learn I guess.

Thanks for the help,
Dave
 
Old 03-08-2006, 12:06 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by DavidHB
Actually I'm not sure if I lost the telnetd console connection with the upgrade from Slack 10.0 to 10.2 or with the change from ker 2.4.31 to 2.6.13.
There is ALOT of possibilities there.
 
Old 03-08-2006, 12:47 PM   #13
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
By chance when you installed 2.6.13, was it test26.s install kernel? If so did you use cd2's 2.6.13 directory to get 2.6.13 kernel-modules and other needed pkgs-not 2.6.13 kernel-headers? Or did you install 2.6.13 from cd2 kernel-source by making initrd image? If you installed test26.s the 1st way maybe you need its kernel-modules pkg too, especially if you get module errors. Just a thought.hmmm.
 
Old 03-09-2006, 06:27 AM   #14
DavidHB
Member
 
Registered: Feb 2006
Location: Chile
Distribution: Slackware 10.2
Posts: 53

Original Poster
Rep: Reputation: 15
2.6.13 test26

Lestoil,

Installed the 2.6.13 test then installed the modules from disk 2. Installed alsa-drivers too, although I realized that I didn't need those. Didn't install the generic though. NOt sure what those are.

I haven't ever compiled or rolled my own yet... still too green.

Thanks,
Dave
 
Old 03-09-2006, 10:11 AM   #15
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
when changing to 2.6 kernel

Many users that are not so green never compile a kernel and use SW happily. But if you ever want to install nvidia drive,for example,you will need the 2.6.13 kernel-source package on cd2 /2.6.13 too. Enjoy.
 
  


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
changing the port of telnet nitaish Linux - Security 1 02-15-2006 09:42 AM
NE Driver with Slakware 10 and Ker 2.4 luger Slackware 2 02-08-2006 02:42 PM
Slack 10.2 Ker 2.6.8.1 RTAI 3.1 Blank screen Pier Slackware 4 11-06-2005 02:29 PM
Need help changing graphical login to regular login jnezezon Linux - Newbie 2 11-13-2003 09:36 PM
telnet auto-login anthjaz Linux - Networking 15 11-04-2003 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:44 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