telnet says "Connection closed by foreign host"

telnet says "Connection closed by foreign host"

Post by Ralf Wahne » Tue, 20 Mar 2001 18:21:21



Hallo

I'd like to setup a small local linux-network by use auf 192.168.* IP
numbers. The PCs are 192.168.0.1 and 192.168.0.2. telnet 192.168.0.1
(on 192.168.0.2) runs. telnet 192.168.0.2 (on 192.168.0.1) causes the
message:


Trying 192.168.0.2...
Connected to 192.168.0.2.
Escape character is '^]'.
Connection closed by foreign host.

Remark: ping, rlogin and ftp runs in both directions.

Could I ask you for a hint?

        Ralf

 
 
 

telnet says "Connection closed by foreign host"

Post by hilc » Tue, 20 Mar 2001 22:02:56


Hi Ralf,
I had the same problems, and here it was caused with too tight security:
if you are
running inetd ( and it looks like you are..), you should check whether
the telnet-port is open to connections,
i.e. check your inetd.conf - file, fix it and restart inetd (kill -SIGHUP
<pid of inetd, look it up with ps -ax >
or /etc/rc.d/init.d/inet restart ).
At my computer this port was not open, and I got the same error.
It could also be the result of another security-tool, like ipchains,
which just forbids anybody to connect at
this port. If you're running a tool like this, check the permissions and
restart the program. For more info, check
the excellent HOWTO's on this subject or the rather cryptic man-pages.

Make sure you don't op these ports for just everybody, since this could
get your machine
hacked if it's on the internet (or by local users if it's not)!

Good luck!

Hilco Jonkeren

Ralf Wahner schreef:

> Hallo

> I'd like to setup a small local linux-network by use auf 192.168.* IP
> numbers. The PCs are 192.168.0.1 and 192.168.0.2. telnet 192.168.0.1
> (on 192.168.0.2) runs. telnet 192.168.0.2 (on 192.168.0.1) causes the
> message:


> Trying 192.168.0.2...
> Connected to 192.168.0.2.
> Escape character is '^]'.
> Connection closed by foreign host.

> Remark: ping, rlogin and ftp runs in both directions.

> Could I ask you for a hint?

>         Ralf


 
 
 

telnet says "Connection closed by foreign host"

Post by Dean Thompso » Wed, 21 Mar 2001 12:39:43


Hi!,

> I'd like to setup a small local linux-network by use auf 192.168.* IP
> numbers. The PCs are 192.168.0.1 and 192.168.0.2. telnet 192.168.0.1
> (on 192.168.0.2) runs. telnet 192.168.0.2 (on 192.168.0.1) causes the
> message:


> Trying 192.168.0.2...
> Connected to 192.168.0.2.
> Escape character is '^]'.
> Connection closed by foreign host.

> Remark: ping, rlogin and ftp runs in both directions.

I suspect that you either don't have your telnet-server package installed on
the machine (it depends on what installation options you choose as to whether
or not it is installed) or you have a problem with your tcp wrappers.  If you
take a look in /var/log/messages or /var/log/secure you should be able to see
whether it is a security related problem.  I would first check to make sure
that you actually have a "telnet-server" loaded on your system.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

1. "Connection closed by foreign host"

I recently installed RedHat 4.2, and I'm having trouble maintaing my ISP
connection.  Sometimes it works for hours, sometimes it drops me without
warning.  Once I get the 'Connection closed by foreign host message' It
persistently drops me within a minute of redialing.  This happens even
if I reboot and try dialing again. Of course, I can go right to my
Slackware machine, dial up, and everything is fine.

I've been dropped in the middle of telnet, ftp, netscape.....I was
dropped while pinging another machine too.
I've emailed various sources at school (my ISP), and they just shrug
their shoulders and say 'We don't know from Linux.'  I have a friend who
has had the same problem.  Any advice here would be most appreciated.
It seems as though the ISP is expecting some sort of signal, if it
doesn't get it, it kicks me out.

Rod

2. Changing SCSI ID

3. Tru64 Unix 5.0 vs NCD XTerminals

4. How hide "Connection closed by foreign host."

5. ICMP questions

6. "Connection closed by foreign host." why?

7. telnet lost from ethernet terminal session ??

8. telnet error: "connection closed by foreign hosts????

9. "Connection closed by foreign host"

10. I say "Hello" Linux says "Goodbye" ... aaarghhh

11. Help with telnet: Connection closed by foreign host

12. Telnet connection closed by foreign host.