FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-12-2012, 05:20 PM
Ski Dawg
 
Default ssh port forwarding

Hello Everyone,

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

No matter which variation I have tried, in every case, it will actually
create an ssh connection to the hostB, and log me into hostB, giving me its
prompt. If I try the port (22222) for the localhost (hostA) in another
terminal window, it doesn't allow the connection. netstat also doesn't show
port 22222 to be opened on the local machine (hostA).

I have turned on AllowTcpForwarding on both the remote machine and the
local machine.

I have also made sure that port 22222 is opened on both machine firewalls
(including the EC2 security group).

What am I doing incorrectly or missing?
--
Doug

Registered Linux User #285548 (http://counter.li.org)
----------------------------------------
Never trust a computer you can't throw out a window.
-- Steve Wozniak
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 01:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org