I'm trying to forward a remote port (8085) to a local port (3333).
Keys are setup, and I can ssh into the remote machine without needing to manually authenticate.
In remote machines ssh_config, "GatewayPorts yes"
The only thing I can think of is the remote machine possibly not having the correct iptable entries, currently:
-A INPUT -p tcp --dport 8085 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8085 -j ACCEPT
... or, in the process of creating this key, this is the first time I actually provided a password for the key... instead of hitting enter twice like most people seem to do
Here is the output of my ssh command:
ssh -v -nNT4 -R *:8085:localhost:3333 me@myhost
ssh -v -p 22 -nNT4 -R *:8085:localhost:3000
me@mydomain.com
debug1: Found key in /Users/me/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/me/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Offering public key: /Users/me/.ssh/master
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: Remote connections from *:8085 forwarded to local address localhost:3333
debug1: Requesting
no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: remote forward failure for: listen 8085, connect localhost:3333
Warning: remote port forwarding failed for listen port 8085
debug1: All remote forwarding requests processed