Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 11, 2011 7:01 pm 
Offline
Senior Newbie

Joined: Tue Nov 02, 2010 12:28 am
Posts: 6
Website: http://www.roottoor.com/
I've setup a custom port in my sshd_config, and when I followed the guide in the Library for a mysql-tunnel and started the script, I got a connection refused on port 22, whereas I've changed my port to something else. Can someone give me some direction on fixing this please?


Top
   
PostPosted: Tue Oct 11, 2011 7:54 pm 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
roottoor wrote:
I've setup a custom port in my sshd_config

You should not have to modify the sshd_config on the server where mysql is running. The purpose of the 'Securely Administer MySQL with an SSH Tunnel' library is to securely access mysql on the local interface of the server, so myslq is not accessible on a public IP.

Maybe posting your sshd_config would help us in identifying the problem.

--
Travis


Top
   
 Post subject:
PostPosted: Wed Oct 12, 2011 3:38 am 
Offline
Senior Newbie

Joined: Sun Aug 23, 2009 11:05 pm
Posts: 6
mysql-tunnel is ultimately running this:

Code:
ssh -f -L $local_ip:$local_port:$remote_ip:$remote_port $remote_user\@$remote_host -N


but you want it to run something like this:

Code:
ssh -p NONSTANDARD_PORT -f -L $local_ip:$local_port:$remote_ip:$remote_port $remote_user\@$remote_host -N


I would simply edit the script, but maybe there's also a way to set the -p option with ~/.ssh/config or an environment variable.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group