Skip to contentSkip to conversation

telnet,rsh,rexec

DISCUSSION Ravi Kumar Munnangi 4 participants 4 messages Feb 1, 2004

lore
Share & tools
lore
#0 lore raw

hi users,

My system IP is 172.31.19.22.
When I try to telnet to my system, I get

Trying 172.31.19.22...
Connected to localhost.localdomain (172.31.19.22). Escape character is '^]'.
Connection closed by foreign host.

Can any one guess the reason.

Can the reason be something related to security. How can I change the default security settings? ON my system the security level is always showing
as high and tried to change it to medium and
customise
But it is always at high level. How can I change this?

Thanks in advance,
ravikumar

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 5 lines · Ravi Kumar Munnangi

hi users,

My system IP is 172.31.19.22.
When I try to telnet to my system, I get

Quoted 7 lines
   Trying 172.31.19.22...

Connected to localhost.localdomain (172.31.19.22). Escape character is '^]'.
Connection closed by foreign host.

Can any one guess the reason.

Guess #1: Nothing is listening on port 23 (neither telnetd itself nor inetd). Check with "netstat -l" (there are other ways too).

Guess #2: An entry in /etc/hosts.deny blocks access.

Guess #3: inetd is listening on the port, but one of the apps it needs to hand off control to (maybe tcpwrappers; maybe telnetd; depends on unreported details of your setup) is either not present or has incorrect permissions.

Guess #4: There is a problem of some sort with reverse lookup of the source address. You've offered too little info for anything more than the general comment, but you might check your logs to see how (even if) the unsuccessful telnet attempt is being logged. (What command are you entering to try to connect? If I "telnet localhost" on any of my systems, it tries to use the lo interface (127.0.0.1), not the eth0 interface.) How long is the delay between the "Escape character" message and the "Connection closed" message? How does the system resolve names and addresses?

Guess #5: Some sort of firewall is in place that blocks access. At this point, we're getting into stuff that is VERY distro specific (like your vague question, below, about "default security settings" and how to change them). If you need help at this level, please provide the usual details about your system ...

what distro and version
what kernel ("uname -a"), and is it stock or custom-compiled output of "iptables -nvL"

... and, as I implied above, the *exact* command you enter to telnet and where you enter it from. Specifically, are you connecting to the system from itself, from another host on the LAN, or, somehow, from the Internet? (The last seems improbable, since a private IP address is involved, but I'm trying to cover all bases here.)

BTW, your Subject: line mentions rsh and rexec, but the body of your message asks nothing about them. Are you having similar connection problems with those apps?

Quoted 9 lines

Can the reason be something related to security. How can I change the default security settings? ON my system the security level is always showing
as high and tried to change it to medium and
customise
But it is always at high level. How can I change this?

Thanks in advance,
ravikumar

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
In reply to Ravi Kumar Munnangi
Quoted 5 lines · Ravi Kumar Munnangi

hi users,

My system IP is 172.31.19.22.
When I try to telnet to my system, I get

Quoted 7 lines
   Trying 172.31.19.22...

Connected to localhost.localdomain (172.31.19.22). Escape character is '^]'.
Connection closed by foreign host.

Can any one guess the reason.

I gave up guessing years ago, give us more infomation, that way we can help you otheriwse no help is possable without guessing witch is AFAIK bad.

1) Disto version and number.
2) Output of netstat -l
3) Output of ipchains -nL or iptables -nL (which ever is in use) You see i have to guess and give more than one command because you did not supply information.
4) Relevant parts of /var/log/messages or syslog, once again you did not say which distro you use so i have to give multiple choose questions.

Quoted 1 line

Can the reason be something related to security.

Possably.

Quoted 1 line

How can I change the default security settings?

Who knows thats distro indeipendant..

Quoted 4 lines

ON my system the security level is always showing
as high and tried to change it to medium and
customise
But it is always at high level. How can I change this?

God only knows, no info period.....

Quoted 4 lines

Thanks in advance,
ravikumar

--
If the Linux community is a bunch of theives because they try to imitate windows programs, then the Windows community is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs