Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
|
06-26-2008, 12:38 PM
|
#16
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
Yes I am starting telnet as root.
telnetd --help has nothing listed. Bash also says there is no telnetd command. zsh thinks I meant telnet and tried to correct it to that. Also when I look up the manual for telnetd, it brings up the manual for in.telnetd.
Last edited by jhilton; 06-26-2008 at 12:38 PM.
Reason: Typos.
|
|
|
06-26-2008, 12:44 PM
|
#17
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Use the telnet command, of course, that is correct for your system. The point is, I'm trying to understand your telnetd's command line options.
Please don't interpret the results for me. Instead, copy and paste the command and its output.
Run your telnetd program, whatever its name, with the --help option.
|
|
|
06-26-2008, 12:45 PM
|
#18
|
LQ Newbie
Registered: Jun 2008
Location: Massachusetts USA
Distribution: Mandriva Corporate 4
Posts: 12
Rep:
|
"No, telnet is running. Telnet output the messages:"
Mr C - you are right - I thought of that after my post - my apologies to all.
That's why I veered off to a security related issue.
-Jim
|
|
|
06-26-2008, 01:03 PM
|
#19
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
Alright well, after running a which telnetd I've found nothing so I'm back to using /usr/sbin/in.telnetd
in.telnetd has no --help. But in its man the options are
Code:
in.telnetd [-Uhlkn46] [-D debugmode][-I initid][-S tos] [-X authtype] [-rlowpty-highpty][-u len][-L /bin/login][-debug [port]]
telnet --help brings up
Code:
telnet [-8][-E][-L][-S tos][-a][-c][-d][-e char][-l user [-n tracefile][-b hostalias ] [-r]
[host-name [port]]
Sorry if this is beginning to get frustrating. I'm beginning to move into unfamiliar areas so I'll be mostly if not wholly, clueless.
|
|
|
06-26-2008, 01:06 PM
|
#20
|
LQ Newbie
Registered: Jun 2008
Location: Massachusetts USA
Distribution: Mandriva Corporate 4
Posts: 12
Rep:
|
lets see how telnetd is started..
more /etc/xinetd.d/telnet
|
|
|
06-26-2008, 01:11 PM
|
#21
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
Code:
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = yes
}
|
|
|
06-26-2008, 01:13 PM
|
#22
|
LQ Newbie
Registered: Jun 2008
Location: Massachusetts USA
Distribution: Mandriva Corporate 4
Posts: 12
Rep:
|
change disable to no
|
|
|
06-26-2008, 01:16 PM
|
#23
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
I did before, it was disabled in an earlier post in order to try to start telnetd manually through the console. Changing disable = no and restarted xinetd brings me back to the original problem.
|
|
|
06-26-2008, 01:32 PM
|
#24
|
LQ Newbie
Registered: Jun 2008
Location: Massachusetts USA
Distribution: Mandriva Corporate 4
Posts: 12
Rep:
|
check /etc/services and make sure port 23 specifies telnet.
start in.telnetd -D report
...and see what happens when telneting.
you might also try capturing traffic for review
on host running telnetd try - tcpdump port 23 - before telnet attempt.
|
|
|
06-26-2008, 01:44 PM
|
#25
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
lkm01801 - we've already verify that telnet was running and responding - the data is there in the previous threads.
What we are trying to do now is find out why the telnetd is *closing the connection* already made. This is an access control issue, not a telnet not started issue.
jhilton - with telnet DISABLED in xinetd, try the following on a command line:
/usr/sbin/in.telnetd -D netdata -debug 9999
Does this startup telnet to where you can connect to telnet on another session as:
telnet localhost 9999
btw. don't use which as the definitive answer to where your commands might be - it only looks in your directories specified in your PATH, so commands that live in directories you normally won't have in your PATH won't be search (eg: in.telnetd). Use locate instead
locate telnetd
|
|
|
06-26-2008, 02:02 PM
|
#26
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
jlm01801 - start in.telnetd -D report does nothing as far as I can tell. in.telnetd -D start brings me right back to the console but there was no output.
in /etc/services telnet is listed as port 23.
This is the TCP dump I got from telneting, with it continuing for about 8 or so lines.
Code:
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
IP 10.128.9.63.32982 > 10.128.9.64.telnet : S 2502673302:2502673302(0) ack 2502673303 win 24820 <nop,nop,sackOK,mss 1460>
Mr. C - I just disabled telnet through xinetd and restarted xinetd again.
Yes, /usr/sbin/in.telnetd -D netdata -debug 9999 does start telnetd and it prompted me to the login screen! I just tried to login and it booted me off for not incorrect passwords... as well as a timeout.
Thanks for the advice on locate. Its one reason that I started this topic in the newbie forums as I am a newbie.
|
|
|
06-26-2008, 02:09 PM
|
#27
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Excellent - you're on your way to debugging. Ignore the timeouts and password requests. We don't need to actually log in yet, as we're debugging just the ability of a local vs. remote connection.
Now, keep that manually-started telnet running, and from one of your *remote* (Solaris) machines, attempt to telnet as you did locally:
telnet remote_ip_here 9999
You are trying to see what happens remotely vs. locally.
|
|
|
06-26-2008, 02:13 PM
|
#28
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
It took me into the login screen on the solaris machine upon telnet as it did when I tried to do it locally. with the same results of not trying to be able to login. It also timed out after I left it alone for awhile.
Last edited by jhilton; 06-26-2008 at 02:15 PM.
Reason: Clarity.
|
|
|
06-26-2008, 02:42 PM
|
#29
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Are you saying "on the Solaris machine, when I ran the telnet to the remote linux machine at port 9999, you received no request for a password" (different that when you tried locally on the linux box?
All this confusion would be eliminated if you just showed exactly the commands you try and their output (copy / paste), and then add your commentary.
|
|
|
06-26-2008, 02:47 PM
|
#30
|
LQ Newbie
Registered: Jun 2008
Posts: 29
Original Poster
Rep:
|
Oh woops sorry.
On the linux machine I did /usr/sbin/in.telnetd -D netdata -debug 9999
Then on the solaris machine I entered telnet *linux ip address* 9999
On the solaris machine was able to connect to the linux machine through telnet and I was prompted for a username and a password.
The Linux machine closed the connection after being idle for a short time.
|
|
|
All times are GMT -5. The time now is 04:07 AM.
|
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
|
|