1

I am trying to create an SSH tunnel so that I can write data securely to a remote MySQL database. I start by setting up the tunnel:

ssh username@remote -L 3306:127.0.0.1:3306 

This gets as far as prompting me for a password and then always gives me the following response:

Permission denied, please try again. 

I know I have the password correct. I've chnged the password and flushed the privilages and tried again. The user on MySQL is set to accept from any host. The firewall and router have rules for the port.

I feel like I'm missing something obvious but cannot work out what, can anyone help.

1 Answer 1

3

The username/password that is asked is for the user on the *nix-box, not the mysql-username/password.

Make sure you can log in into the server by issuing the following command:

ssh username@remote 
1
  • 1
    Thanks, that was it, stupid mistake on my part. Thaks for your help. Commented Feb 13, 2012 at 16:56

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.