I have a server with two network interfaces. Cassandra is listening on a dedicated internal database network on eth1 (not accessable from outside). So I do my tunnel like this:
ssh -f -N -L9161:192.XXX.XXX.200:9160 [email protected] -P 9922 Where XXX is the internal database network and YYY is the network where ssh is listening. When I try to cqlsh localhost 9161 I get the follwing exception:
Connection error: ('Unable to connect to any servers', {'localhost': ConnectionShutdown('Connection <AsyncoreConnection(139691023521360) localhost:9161 (closed)> is already closed',)}) But when I telnet localhost 9161 I get successfully a telnet shell. And of course cassandra is running.
Any ideas how I can get my tunnel to work?