Accessing PhpMyAdmin On Linux And Mac OS X
To access the application using your Web browser, create an SSH tunnel, as described
below.
Open a new terminal window on your local system (for example, using "Finder ->
Applications -> Utilities -> Terminal" in Mac OS X or the Dash in Ubuntu).
Run the following command, remembering to replace SERVER-ADMIN-NAME with the
admin name you created for the server. Also replace SERVER-DNS-NAME with the
DNS name of your server. (spaces are important and this command prompt is case
sensitive)
ssh -N -L 8888:127.0.0.1:80 SERVER-ADMIN-NAME@SERVER-DNS-NAME
For instance if your server admin name is Ralph and your server DNS name is
mycoolserver.someoddsubdomain.somedomain you will issue the command:
ssh N L 8888:127.0.0.1:80 Ralph@ mycoolserver.somesubdomain.somedomain
Enter your server admin password when prompted.
NOTE: If successful, the above command will create an SSH tunnel but will not display
any output on the server console. Simply minimize the terminal and continue. Do not
close the terminal or you will break the ssh connection and you will not be able to
access phpMyAdmin.
Access the phpMyAdmin console through the secure SSH tunnel you created, by
browsing to http://127.0.0.1:8888/phpmyadmin.