At 18:20 12/07/2012, you wrote: Hi Doug, >I am having a problem with setting up port forwarding from one of our local >CentOS machines to an AWS EC2 instance. We are wanting to make mysql >connections over an ssh tunnel. > >In this case, lets say that hostA is our local machine, and hostB is the >Amazon EC2 instance. I have tried several different variations (that I have >found from google searching), including: >from hostA: ssh -L 22222:hostB:3306 user@hostB >from hostA: ssh -L 22222:localhost:3306 user@hostB >from hostA: ssh -L 22222:hostB:3306 user@localhost On HostA run the following within a screen session; ssh user@hostB -L 22222:127.0.0.1:3306 Hope this helps. regards Tim Tim D'Cruz _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos