remote ssh issue with the iptables command
Hi. I'm trying to remote ssh into a server and get and iptables listing. I'm using this:
results=`ssh -q -l root remoteserver "iptables -nvL;"`
echo $results
My results show the first line of the remote server's iptables and half way thru the line I get a local directory listing and then the last portion of the remote iptables line. This will repeat until I have seen all of the rules within iptables.
If I remove the "v" so it looks like "iptables -nL;" I get back my normal iptables rules as expected.
Any suggestions?
Last edited by neteng996; 09-20-2010 at 11:47 PM.
|