RHEL vs SLES: netstat -a
April 24, 2007 2:33 PM
Subscribe
Why doesn't "netstat -a" work with forwarded ports on SLES 10x64?
I'm doing some testing work on local port forwarding thru ssh. Everything is going along swimmingly as I develop my tests on my RedHat ES4 box. When I go to run my test against a SLES10 x64 machine, things don't work. I believe I have narrowed down the issue to a problem with "netstat -a" not working as expected on the SLES box.
On the RHEL4 box:
[x@localrh .ssh2]$ ssh -oPort=22 -n -L 3434:dragontail:23 x@dragontail sleep 15 &
[1] 26644
[x@localrh .ssh2]$ Authentication successful.
netstat -a | grep 3434
tcp 0 0 localhost.attachmate.c:3434 *:* LISTEN
tcp 0 0 ip6-localhost:3434 *:* LISTEN
[x@localrh .ssh2]$
[1]+ Done ssh -oPort=22 -n -L 3434:dragontail:23 x@dragontail sleep 15
But on SLES10 x64 box:
x@dragontail:~/.ssh2> ssh -oPort=22 -n -L 3434:localrh:23 x@localrh sleep 15 &
[1] 17294
x@dragontail:~/.ssh2> Authentication successful.
x@dragontail:~/.ssh2> netstat -a | grep 3434
x@dragontail:~/.ssh2>
[1]+ Done ssh -oPort=22 -n -L 3434:localrh:23 x@localrh sleep 15
I've verified that the forwarded ports are available and active on the SLES box, just like on the RHEL box, but I can't figure out why it's not showing up in my netstat. A quick googling for SLES and netstat didn't report any unusual behavior. Am I missing something obvious?
posted by nomisxid to computers & internet (7 comments total)
I'd suggest running the first command without the & sign and seeing if you get any output... the & might be consigning some kind of error into the bitbucket.
posted by Malor at 2:54 PM on April 24, 2007