Posts SSH + Phpmyadmin for Azure Virtual Machine
Post
Cancel

SSH + Phpmyadmin for Azure Virtual Machine


SSH + Phpmyadmin (Azure VM)

Steps to be followed are:

  1. Download private key file From Azure Portal(eg: key.pem)
  2. Goto the download location and run the below command
    1
    
     "chmod 400 azureuser.pem"
    
  3. Get the pwd (key.pem in it)
    let the pwd be ‘x’
  4. In Azure connect portal paste ‘x’ in 3rd field asking the private key path
    A command would be generated in 4th field such as:-
    1
    
       ssh -i <private key path> azureuser@chilliportal.eastus.cloudapp.azure.com
    

    Paste the genearted line in command line to get ssh access.

For Phpmyadmin

  1. Goto command line and run below command:-
    1
    
     ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP
    

    By deafult for azure vm the command would be:-

    (Let present working directory be where key.pem is present)

    1
    
     ssh -N -L 8888:127.0.0.1:80 -i key.pem azureuser@SERVER-IP 
    
    (Server-IP might keep changing, so get it from the vm dashboard in Azure Portal)
  2. Now, goto browser and goto the below link
    1
    2
    3
    
     127.0.0.1:8888
    (Enter Your login Credientials)
    (Can be checked via ssh login in bitnami_cred file)
    
  3. The php files are hosted in below directory.
    1
    
    "/opt/bitnami/apache2/htdocs/"
    

This post is licensed under Ravi Jain by the author.

C/C++ Tricky Programs (Set 5)

-

Comments powered by Disqus.