Networking Forums

Networking Forums > Computer Networking > Linux Networking > I can't Telnet to Red Hat machine from Windows

Reply
Thread Tools Display Modes

I can't Telnet to Red Hat machine from Windows

 
 
vasanta
Guest
Posts: n/a

 
      05-24-2004, 02:12 PM
Hi!

I am having a problem with a connection between my RedHat Linux 9.x
and
Windows 2000.

They both can ping each other. The RedHat can ftp to the Windows 2000.

However, when I telnet or ftp from Windows to the RedHat, it said:
D:\>telnet xx.xx.xx.xx
Connecting To xx.xx.xx.xx...Could not open a connection to host:
Connect failed

Can you give me some idea about this? Anything I can check to solve
this problem?

I tried to stop linux firewall by this foloiwng commands, but still it
is same problem, telnet not working

service iptables stop


Thanks.
 
Reply With Quote
 
 
 
 
Sven Vermeulen
Guest
Posts: n/a

 
      05-24-2004, 02:26 PM
On 24 May 2004 07:12:11 -0700, vasanta <(E-Mail Removed)> wrote:
> However, when I telnet or ftp from Windows to the RedHat, it said:
> D:\>telnet xx.xx.xx.xx
> Connecting To xx.xx.xx.xx...Could not open a connection to host:
> Connect failed


Does your RedHat run a telnetd daemon and an ftp daemon?

What does 'netstat -napt' say when executed (as root) on your RedHat?

Wkr,
Sven Vermeulen

--
Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive:
The approach of the Commission and Council in this directive is shocking.
They are making full use of all the possibilities of evading democracy that
the current Community Law provides. <http://lwn.net/Articles/84009/>
 
Reply With Quote
 
Alex
Guest
Posts: n/a

 
      05-24-2004, 06:34 PM
vasanta wrote:

> Hi!
>
> I am having a problem with a connection between my RedHat Linux 9.x
> and
> Windows 2000.
>
> They both can ping each other. The RedHat can ftp to the Windows 2000.
>
> However, when I telnet or ftp from Windows to the RedHat, it said:
> D:\>telnet xx.xx.xx.xx
> Connecting To xx.xx.xx.xx...Could not open a connection to host:
> Connect failed
>
> Can you give me some idea about this? Anything I can check to solve
> this problem?
>
> I tried to stop linux firewall by this foloiwng commands, but still it
> is same problem, telnet not working
>
> service iptables stop
>
>
> Thanks.


Check the firewall settings on Red Hat. I think Red Hat 8 and 9 enable Firewall by default (unless
you disabled it during installation) and this will prevent SSH, HTTP, etc access from outside
localhost. Run iptables -L and see if you have restrictions... and if so run iptables -F and see if
you can connect then.

If this works, you'll need to disable or reconfigure your iptables or the Red Hat firewall or next
reboot it'll reset-up the iptables filters.

Hope this helps...

Alex.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-24-2004, 06:54 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking vasanta <(E-Mail Removed)> suggested:
> Hi!


> I am having a problem with a connection between my RedHat Linux 9.x
> and
> Windows 2000.


Fine, telnet is an old insecure protocol we don't use anymore,
use ssh (secure shell) instead, usually it should be running
already, try 'ps aux | grep sshd' from a terminal. There are
various (free) ssh clients, putty/winscp for M$ come to my mind,
try a google search, download/install one of those and use that
to login.

Good luck

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAskTaAkPEju3Se5QRAtg/AJ9LobwI+Ii6HMBT3jLLVPqeK104DQCfWD07
nNDDldmGtPP+wI3xu/50kp0=
=yczX
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-24-2004, 06:57 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Sven Vermeulen <(E-Mail Removed)> suggested:
> On 24 May 2004 07:12:11 -0700, vasanta <(E-Mail Removed)> wrote:
>> However, when I telnet or ftp from Windows to the RedHat, it said:

[..]

> What does 'netstat -napt' say when executed (as root) on your RedHat?


netstat works the same as user for this purpose, unless you want
to reset the stats, which does of course only work as root.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAskV7AkPEju3Se5QRAtRVAKCrAeDN+DZ4e25Lcntqrd FnW5L5IgCfRJTq
Efv3259v/yUtQxD6qvX4tLs=
=LSnx
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Spyro Polymiadis
Guest
Posts: n/a

 
      05-25-2004, 06:10 AM
look in /etc/xinted.d/ for a file called telnet or telnetd and edit that
file... towards the bottom there should be a line that says disabled=yes,
change this to no and then restart the xinted process by typing
/etc/init.d/xinted restart then try telnetting, also verify that
netstat -pant shows the telnet daemon running on port 23. or 0.0.0.0:23

Hope this helps


"Michael Heiming" <michael+(E-Mail Removed)> wrote in message
news:svs9o1-(E-Mail Removed)...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> NotDashEscaped: You need GnuPG to verify this message
>
> In comp.os.linux.networking vasanta <(E-Mail Removed)> suggested:
> > Hi!

>
> > I am having a problem with a connection between my RedHat Linux 9.x
> > and
> > Windows 2000.

>
> Fine, telnet is an old insecure protocol we don't use anymore,
> use ssh (secure shell) instead, usually it should be running
> already, try 'ps aux | grep sshd' from a terminal. There are
> various (free) ssh clients, putty/winscp for M$ come to my mind,
> try a google search, download/install one of those and use that
> to login.
>
> Good luck
>
> --
> Michael Heiming (GPG-Key ID: 0xEDD27B94)
> mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFAskTaAkPEju3Se5QRAtg/AJ9LobwI+Ii6HMBT3jLLVPqeK104DQCfWD07
> nNDDldmGtPP+wI3xu/50kp0=
> =yczX
> -----END PGP SIGNATURE-----



 
Reply With Quote
 
Sven Vermeulen
Guest
Posts: n/a

 
      05-25-2004, 06:34 AM
On Mon, 24 May 2004 18:57:00 -0000, Michael Heiming <michael+(E-Mail Removed)> wrote:
> netstat works the same as user for this purpose, unless you want
> to reset the stats, which does of course only work as root.


If you run it as root you'll see the names of the processes as well as the
process IDs. When run as user, you would just receive a process ID from which
you cannot tell if it really is the daemon that is running or some other weird
process.

Wkr,
Sven Vermeulen

--
Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive:
The approach of the Commission and Council in this directive is shocking.
They are making full use of all the possibilities of evading democracy that
the current Community Law provides. <http://lwn.net/Articles/84009/>
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-25-2004, 06:48 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Sven Vermeulen <(E-Mail Removed)> suggested:
> On Mon, 24 May 2004 18:57:00 -0000, Michael Heiming <michael+(E-Mail Removed)> wrote:
>> netstat works the same as user for this purpose, unless you want
>> to reset the stats, which does of course only work as root.


> If you run it as root you'll see the names of the processes as well as the
> process IDs. When run as user, you would just receive a process ID from which
> you cannot tell if it really is the daemon that is running or some other weird
> process.


Yep, double-checked, never mentioned that, you'll see only the
names of PID running under your own UID.

$ netstat -V
net-tools 1.60
netstat 1.42 (2001-04-15)

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAsuxWAkPEju3Se5QRAre/AJsH0pdItMpGabG4cTTZv2fPGFWIQwCfUPzX
e608EKlGaLutiaY46QcqVnw=
=gK2h
-----END PGP SIGNATURE-----
 
Reply With Quote
 
vasanta
Guest
Posts: n/a

 
      05-25-2004, 11:54 AM
Thanks guys, actually my telnet-server*.rpm package was not installed,
I installed that and then added "telnet" file in /etc/xinetd.d. Then
started telnet service.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remotely login into a pure IPv6 Linux machine from a DualStack windows machine chaitan Linux Networking 1 11-21-2007 05:37 PM
Problem with Telnet, FTP to machine in LAN Madhur Linux Networking 2 05-21-2007 09:48 PM
Installed Fedora, can't telnet from PC into Fedora machine? Santa Linux Networking 5 11-15-2004 05:25 AM
Telnet from Windows XP into RH Linux through VPN Linda Lee Linux Networking 2 11-28-2003 11:25 PM
Cannot telnet to a uClinux box from Windows XP Federico Lanza Linux Networking 1 10-06-2003 04:32 PM



1 2 3 4 5 6 7 8 9 10 11