Click to See Complete Forum and Search --> : Still not able to telnet...


Sauron
11-15-2000, 10:01 PM
I'm still not able to telnet into my newly built system. Just to give a recap, I just put together an old system of mine and plan on running it as a server of some sorts. I have two other systems on my network (a dual booting Win98/Linux Mandrake 7.2 PC and an iMac running OS X PB) with the IP addresses of 10.10.10.1 and 10.10.10.2. The new system I set as 10.10.10.3. Now, I know that I'm supposed to change something in the hosts.allow, hosts.deny, and inetd.conf, but I really have no idea what to do in them. Now, I am able to telnet into my other systems from that new system, but when I try telnetting INTO my new system, it connects but then drops me. Can anybody help?

------------------
"...Obscurity is usually the den of incompetence."

R. Heinlein

ph34r
11-15-2000, 10:10 PM
What user are you trying to login as? root is typically not allowed to connect via telnet. Also, when it drops you, is there a error message?

SubPar
11-16-2000, 12:38 AM
In inetd.conf, make sure the line for the telnet daemon is uncommented. Here's an example line:

telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd

Just make sure there's no pound sign in front of that line.

In hosts.allow, add the line

in.telnetd: <IP address>

for each IP address you want to telnet in from. In your case, it would be

in.telnetd: 10.10.10.1
in.telnetd: 10.10.10.2

(you may need to put the two IPs on one line separated by commas. I haven't tried allowing telnet access to multiple IPs)

Even if you have ALL: ALL in your hosts.deny file, those IPs will be allowed access.

Sauron
11-16-2000, 01:23 AM
Thanks for the advice, guys. I'm just trying to log in as one of my user accounts, not as root. I think I see what my problem is, though: I just put in the IP addresses in the hosts.allow file instead of putting in.telnetd: in front of them. I'll give this a shot and let yall know if that works. Thanks!

------------------
"...Obscurity is usually the den of incompetence."

R. Heinlein

Sauron
11-16-2000, 01:50 AM
Just tried that suggestion...hmm....still won't work. Whenever I try telnetting in from either of my other systems, it connects, sits there for a second, and then I get a message saying "Connected dropped by foreign host". I can telnet to my other systems from it fine, though, and same thing with ftp. Just letting yall know...


------------------
"...Obscurity is usually the den of incompetence."

R. Heinlein