Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

SSL tunel to access mysql server

I have two server - ServerA and ServerB

Any idea how to build up ssh to ServerB and forward all MySQL request to ServerB ?

Tks
Avatar of amilie wilson
amilie wilson
Flag of India image

Avatar of AXISHK
AXISHK

ASKER

ssh -L 3306:localhost:3306 scgadm@sqlserver  (after keying password, ssh can be built between ServerA ad SQL Server)

[scgadm@sqlserver ~]$ mysql -h 127.0.0.1 -u root -p xxxx
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Any idea ?

Tks
ASKER CERTIFIED SOLUTION
Avatar of amilie wilson
amilie wilson
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK

ASKER

tks