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.