LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2012, 06:32 PM   #1
rsheikh
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Rep: Reputation: Disabled
Connection between RHEL 6 & WIN 7 PRO issues Galore


Disclaimer: me a newbie
Issue: Trying to connect from a win 7 pro (64 bit machine (win7 from now on) to Red Hat 6.1 (red from now on). Connection is refused/goes to abyss etc.

Errors:
Quote:
TCP port 8561 (unknown service): FILTERED

UDP port 8561 (unknown service): LISTENING or FILTERED
portqry.exe -n 10.20.18.91 -e 8561 -p BOTH exits with return code 0x00000002.
on red machine:
Quote:
scp ./foo 10.20.18.158:C\foo.txt
ssh: connect to host 10.20.18.158 port 22: Connection refused
lost connection
Facts:
Red is 32 bit RHEL 6
Win7 is 64 bit 7 pro
Both can ping each other
The first error is after running PortQry
-On win7 tried
1. turn off firewall
2. listed under allow a prog thru firewall
3. updated nic card drivers (realtek 6...)
4. Ran diagnosis on win7 says cannot communicate with Red

-On red tried:
1. iptable -F
2. Added rule
Quote:
iptables -I INPUT -i eth0 -p tcp --sport 22 -m state --state RELATED,ESTABLISHED -j ACCEPT
-Rebooted both win7 & red.
-MS support says issue with Red not win7

Any insight is deeply appreciated.
 
Old 02-15-2012, 01:02 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
What are you trying to do?

scp a file from source=linux to destination=win7? This is what the command you have is doing.
So firstly, scp needs an ssh server to be running on the other end of the connection.
This certainly isn't standard windows behaviour, although i do believe there are ssh servers ported to windows.
I am going to assume you are not running one, since you didn't mention which you were running.
So this is the first mistake.

Secondly, "10.20.18.158:C\foo.txt", there is a whole bunch wrong with this, the colon( designates the start of the path relative to the users home directory. (":/path will specify the full path"), the windows path you have entered "C\foo.txt" wrong anyway because it is missing the colon. But this isn't really relevant because it wont work for the above reasons.

Quote:
2. listed under allow a prog thru firewall
What program? What firewall?
Quote:
4. Ran diagnosis on win7 says cannot communicate with Red
What diagnostis? How were you trying to communicate? How did it "say" that it cannot communicate?
Quote:
iptables -I INPUT -i eth0 -p tcp --sport 22 -m state --state RELATED,ESTABLISHED -j ACCEPT
You want dport, the sport could be anything, the destination port is 22.
To the best of my knowledge, as far as Layer 7 connectivity between Windows and Linux goes, out of the box (from windows perspective), is CUPS and samba. You have a layer 3 connection, since ping works.

If you are looking to copy files from the linux server, to the windows client, you may be interested in winscp, and putty.
 
Old 02-15-2012, 02:16 PM   #3
rsheikh
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you so very much sir for your time and explanation. Actually this is what happens when one is out of their element, lol. Sorry I wasted your time on wrong info.

I thought I was being smart

The real issue is: I have an install of an app. One portion running on red hat and application's webapps on WIN7, when I go to install the win side of components as a process it needs to connect to the red hat where another component is running. It complained that it could not. So there I tried listing portQry but keep getting connection refused and all sorts of errors that I listed initially. SCP you could ignore, the real issue is regardless of what I or MS tech support guy did, could not connect to red hat machine.

sshd is running on red machine.

I hope that clarifies and you still may have some insights for me.
 
Old 02-15-2012, 02:29 PM   #4
rsheikh
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Forgot to add no third party firewall just win firewall
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Win 2K pro & RH 9.0 Pro Install?? PAC1220 Linux - Software 4 02-10-2006 11:04 AM
Dual Boot Win xp & Suse 9.2 Pro lankan Linux - Newbie 9 11-26-2004 03:40 PM
Dual Booting 10 Official & Win 2k Pro offdahook84 Mandriva 12 08-23-2004 05:42 AM
Client connection problems with Samba And Win XP Pro hewsonism Linux - Software 4 01-13-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration