Tuesday, May 21, 2013

How to access amazon server remotely from windows?

Download putty and pagent for windows.
 

Open pagent and add key as ".ppk" format
 

Open putty and put the host name as "bitnami@ece.compute-  1.amazonaws.com" and port number "22".

By default phpMyAdmin and phpPgAdmin are not accessible from outside for security reasons.
 

In order to access them, you can create an SSH tunnel to Apache, sending your requests to your webserver from 127.0.0.1 (localhost).

    You should follow these steps to create the tunnel:
    

1. Create the tunnel.
    - If you are in Linux or Mac you can run the following in a console in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):
    $ ssh -N -L 8888:127.0.0.1:80 bitnami@ece.compute-1.amazonaws.com
    - If you are using Windows, you can use Putty:
    Follow the steps described here
    Before opening the connection. Go to Connection -> SSH -> Tunnels, enter the values below and click "Add" button:
    Source port: "8888"
    Destination: "localhost:80"
 

    Click Open

    2. While the tunnel is active you can connect to the web application at http://127.0.0.1:8888/phpmyadmin or http://127.0.0.1:8888/phppgadmin in your browser. The default login is:
    username: root for MySQL or postgres for PostgreSQL database.
    password: bitnami (for BitNami).


No comments:

Post a Comment