How to connect to your Amazon Instance? Redirected from cloud/how to connect to your amazon instance

    Server properties

    When connecting remotely to your machine, you need to know two basic properties: server IP address / server domain name and account credentials.

    BitNami Cloud Hosting

    You can find them in the BitNami Cloud Hosting Console in your server Manage section.

    In the example below you can find the server public IP address, public DNS name, Application Login and Application Password.

     

    If you click Connect, then you will get an info about SSH login and private key.

     

     

    Virtual Machine/Remote Server

    You should be able to get the server IP address from your dedicated machine provider, VMWare or Virtualbox console. 

    AWS

    Get the instance IP address or the server domain name from the AWS console.

    Azure

    Get the machine IP address from the Azure console.

    Tabs end

     

    How to open an additional server port

    BitNami Cloud Hosting

    BitNami Cloud Hosting by default opens the following ports for each server: 22, 80 and 443.  You are able to add more ports if you need.

    If you want to open a port, you should:

    1. Go to the Servers section, select your machine and click "Manage" button. Then click 'Firewall' tab.
    2. If your server was created recently, then you will see two buttons:
      Add Custom Firewall Rules - will allow you to add / remove firewall rules which are applied only to this particular instance. This option may not be available for old BitNami Cloud Hosting machines.
      Edit Default Firewall Rules - will let you modify the main AWS Security Group. Please note that any changes here will affect all your servers launched with this BitNami Cloud Hosting cloud account and running in the same AWS region as the current instance.
    3. You can enter the port number (1-65535) or the range of ports (<from port>-<to port>) and the protocol (tcp / udp).
    4. Optionally, you can restrict the access for a specific IP, modifying the Source IP from everyone (0.0.0.0/0) to (<ip value>/32). 

    AWS

    You need to modify the instance Security Group to open an aditional server port.

    Azure

    The Azure opens by default only port 22. You need to add/remove ports in the Azure console, the server Endpoints section.

    Tabs end

     

    Upload your files with SFTP

    Uploading files

    We describe the most popular SFTP clients below. Other FTP clients may be used if they have support for SFTP (Secure FTP). In this case you should set "22" as the port number in the configuration.

    Windows FileZilla

    You can download the FileZilla Client application from: http://filezilla-project.org/

    You should follow these steps to upload files:

    1. Get your SSH Key in PPK format
    2. Start FileZilla
    3. Go to edit -> preferences
    4. Select SFTP 
    5. Click "Add keyfile" 
    6. Select the PPK file 
    7. Save the settings (click OK in settings window) 
    8. In the connection toolbar, enter:
      1. Host: the Public DNS ( xyz.bitnamiapp.com / ec2-xwz.compute-1.amazonaws.com) 
      2. User: 'bitnami' 
      3. Password: leave it blank 
      4. Port: 22
    9. Click "Quickconnect" 
    10. If you get a message "The server's host key is unknown", click "ok" button 

    Windows WinSCP

    First, get your SSH key in PPK format: Learn more

    Once you have it, use the settings like it is shown in the image below.


    winscp.png

    OSX Cyberduck

    This guide describes how to connect using Cyberduck FTP client for OS X but you can use a different one. First, it is necessary to download your private key in PEM format. 

    If you have started a server, you can try to connect using SFTP. Open a new connection and specify this protocol.

     

    Then, open the "More options" tag and enable the "Use Public Key Authentication" option. In this case you should specify the path to your private key that you downloaded previously (bitnami-hosting.pem by default).

     

     

    Then copy your server domain name, specify the Username: "bitnami" and it is not necessary to specify any password.

    Tabs end

    The files for each application can be found in /opt/bitnami/apps: 

    http://wiki.bitnami.org/BitNami_Cloud_Hosting/FAQ#Where_are_my_apps_installed.3f

    Uploading files as root user (administrator)

    If you need to copy files to a location where "bitnami" user doesn't have write permissions, you can configure WinSCP as it is described in: 

    http://wiki.bitnami.com/BitNami_Cloud_Hosting/Servers/Access_your_machine#Editing_files

    Or you can copy the files to /home/bitnami and then connect via SSH to the server and move the files to the desired location with "sudo":

    sudo mv /home/bitnami/uploaded_file /path/to/desired/location/

    Editing files

    If you want to edit files that are writable by the "bitnami" user, you can use the same tools described in the section above to edit them. If you are trying to edit files that require administrator privileges, such as system configurations, you can use one of the methods below to edit files as the root user:

    WinSCP

    If you are using winSCP to connect to your instance you can do the following for edit files as root user. Once you have configured the connection as it is described here. You can click on "Advanced options" -> "Environment" -> "SCP/Shell" -> "sudo su -". Please make sure that you select the SCP protocol in the Session section.

     

    Nano

    Another option is to use "nano" editor in the server console: 

    1. Connect to your server via SSH.  More info
    2. Execute nano as follows: 
    $ sudo nano /path/to/the/file
    1. Perform any changes in the file
    2. Press "CTRL+X" to exit the editor (it will ask if you want to save the changes, enter 'Y' to apply them)

    Learn more about nano editor

     

    Files writable by the web server

    The Apache web server is running with the "daemon" user permissions so if you want to make directory and all the files inside writable by bitnami user and the web server, then you should connect to your machine via SSH and execute the following commands:

    $ sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/your_plugin_directory
    $ sudo chmod -R g+w /opt/bitnami/apps/wordpress/your_plugin_directory
    

    Note: if you are using Amazon Linux or Red Hat, the group should be set to "apache" instead of "daemon"

    SSH access

    Introduction

    SSH stands for Secure Shell Handler and is a protocol used to connect securely to a remote server and execute commands. It is the equivalent of opening a terminal window on the remote server. To connect to a BitNami hosted server, you will need a special file named "Private Key". 

    SSH Private Key

    The most secure way to access your server via SSH is by using the SSH Key - password-based authentication is not secure. Each cloud account has an associated SSH key file ("Private key") that you can use to connect remotely to the servers launched using that cloud account credentials. This file needs to be protected, as anybody who has access to it can access your servers. On Linux and OS X, it is necessary to change the file's permissions, so it is only readable by you.

    $ chmod 600 bitnami-hosting.pem
    

    Otherwise you may get a 'bad permissions: ignore key' error.

    How can I download my private SSH key

    BitNami Hosting

    Go to the Servers section, select your server, click 'Manage Server' and use 'Connect'  button. In case you don't have any servers, you can download his file going to Clouds > Manage, clicking on the appropriate cloud account. Click on the appropriate format to start the download: 

    • Select PEM format if you are going to connect from Linux, OS X or other Unix systems
    • Select PPK for Windows Putty, FileZilla and WinSCP. 

    bch_server_manage_connect2.png

     

    AWS Console

    It is not possible to download the SSH key from the Amazon EC2 Control Panel once it has been created. If you launched your server using the Amazon EC2 Control Panel and selected the option to generate a new key pair, it would have been available for download at that time.
    Tabs end
     
    Store the SSH key file in a secure place on your local machine!

    How can I get my private SSH key in PPK format?

    PPK is the private key format used by Windows programs Putty, FileZilla and WinSCP.

    BitNami Hosting

    If you are a BitNami Cloud Hosting client, you can download your key in this format directly: click "Connect" in "Server Manage" view and use "PPK" button. 

    Others

    Otherwise, you will need to convert your downloaded key to PPK format as described here: http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter8.html#puttygen-conversions

    putty-download.png

    putty-conversion.png  putty-conversion2.png

    Tabs end

    How to connect to my server

    Windows & Putty

    Windows does not come with a bundled SSH client by default. It is recommended that you use the freely available Putty utility, which can be downloaded from:

    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

    You will need to get your SSH key in PPK format

    Once you have your key in PPK format, you can connect following these steps: 

    • Start Putty ( Start Menu -> Programs -> Putty -> Putty ).
    • Enter your machine IP address or public domain name in the Session section. You can find out the hostname of a server by going to the Servers page, selecting the server and clicking 'Manage Server'. The hostname will appear next to Public DNS and it will be similar to 'xyz.bitnamiapp.com. Of course a server needs to be running so you can connect to it.

    • Go to Connection -> SSH -> Auth and add the path to your private SSH PPK key. More Info

    • Go to Connection -> Data using the left menu.
    • Enter "bitnami" as the "Auto-login username".
    • At this point you may save the configuration for future connections: Go to "Sessions", enter a name in the "Saved Sessions" field and click "Save"
    • Click "Open" to start the SSH session.
    • Click "yes" to accept server key if it is the first time you are accessing the server. (more info)

    Note: If you want to connect to another server, you will just need to load the saved connection, change the domain and click "Open"

    If you prefer to use putty from the command line, you should include '-i' and '-l' options as follows:

    > putty -i "C:\Path\To\bitnami-hosting.ppk" -l bitnami example.com
    

    Windows & MobaXTerm

    MobaXTerm is an enhanced terminal with an X server and a set of Unix commands (GNU/Cygwin) packaged in a single portable exe file. You can dowload it at:

    http://mobaxterm.mobatek.net

    You will need to get your SSH key in PEM format. In this case it is not necessary to import your private key into the application, you can use it directly.

     

          

    You can copy files to the machine using the right panel or you can connect to the machine through SSH:

    $ ssh -i private_key bitnami@your-machine-hostname
    

    Linux or Mac OS X

    You will need to get your SSH key in PEM format.

    Linux and Mac OS X come bundled with SSH clients by default. To connect to your server using SSH, you need to open a Terminal and type the following:

    $ ssh -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.com
    

    You will need to replace bitnami-hosting.pem with the path to your private key file and replace example.com with the IP address or hostname of your server.  You can find out the hostname of a server by going to the Servers page, selecting the server and clicking 'Manage Server'. The hostname will appear next to Public DNS and it will be similar to 'xyz.bitnamiapp.com. Of course a server needs to be running so you can connect to it.

    Make sure your SSH key bitnami-hosting.pem has proper permissions. You can set the permissions using the command below:

    $ chmod 600 bitnami-hosting.pem
    
     

    Tabs end

    How can I access my server as the root user?

    By default, you can only log in as the bitnami user to a BitNami-backed machines (VM, AWS, Azure or BitNami Cloud Hosting). Once logged in, you can use the 'sudo' utility to become the super user or execute.

    sudo su
    

    SSH tunnel

    If you want to connect to the local port which is not available from outside, you can use SSH encrypted tunnel. Assuming that your server application is running at the port 9990 and that you want to have access to it from your local port 9991.

    Windows

    If you are using Windows in your local machine you can create the tunnel as follows:

    • Follow the steps to connect using Putty
    • Before opening the connection. Go to Connection -> SSH -> Tunnels, enter the values below and click "Add" button:
      • Source port: "9991"
      • Destination: "localhost:9990"

    A different workaround is using "plink.exe" tool from the Windows command line.

    > plink.exe -i your_key.ppk -N -L 9991:127.0.0.1:990 bitnami@xyz.bitnamiapp.com

     

    Linux and Mac OS X

     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 -v -N -L 9991:127.0.0.1:9990 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.com
    

    Tabs end

    While the tunnel is active you can connect to your server port 9990 at 127.0.0.1:9991

    Troubleshooting

    The SSH warning: REMOTE HOST IDENTIFICATION HAS CHANGED

    It is normal when you are trying to connect to the same IP but the machine is different, for instance when you assign the static IP address to another server. You can fix the problem by removing the IP address (you are trying to connect) line from your ~/.ssh/known_hosts file.

    If you use Putty, then ssh key mismatch warning looks like below:

    WARNING - POTENTIAL SECURITY BREACH! 
    [...]
    

    In this case click Yes, if you know the reason for the key mismatch (IP address assigned to another server, machine replaced, etc.)

     

    Give SSH access to the another person or your customer

    It is better if you ask your customer to send you his own public ssh key generated on Linux/Unix/OS X, this way you can give him an access to your machine without sharing your private keys.
    Copy this file my_customer_public_ssh_key to your server.

    Now you have two options:

    • you can create a separate account for him (RECOMMENDED)
    • or just allow him to log into the server using the 'bitnami' account
    Create a separate account

    First you need to connect to your machine as "bitnami" user via SSH. More info how to do so at this wiki page.

    Once you are logged in, to create a new user that will share the same user privileges as "bitnami", you could use the command below:

    sudo useradd -s /bin/bash -o -u `id -u` -g `id -g` new_username

    That will create an alias user for "bitnami". That means it will be able to write into directories such as htdocs or use sudo.

    Now you can configure ssh access for that user. To do that, you can simply copy the bitnami .ssh folder to the new user home directory:

    sudo mkdir ~new_username/ 
    sudo cp -rp ~bitnami/.ssh ~new_username/
    sudo cp -rp ~bitnami/.bashrc ~new_username/
    sudo cp -rp ~bitnami/.profile ~new_username/

    And modify the file /home/new_username/.ssh/authorized_keys as desired. Without any other changes, you should now be able to log into the server as "new_username" user with the "bitnami" user ssh private key.

    If you want to add new public keys, you just need to edit the /home/new_username/.ssh/authorized_keys file and paste the content of the desired public key file. You could either do it using the SFTP/SCP client, or via command line when logged into the server:

    cat ~/my_customer_public_ssh_key >> /home/new_username/.ssh/authorized_keys

    If you want that you user is able to run commands as root user, it is necessary to add your new user to the "bitnami-admins" group. Run the following command as "bitnami" user in your machine:

    sudo usermod -G bitnami-admins new_username
    

    To generate this key (the public and private key pair), depending on if you are on Unix or Windows, you can use:

    • OS X and Linux
      The command will ask for some information to generate the pair (basically the location and the password)
    ssh-keygen -t rsa
    • Windows
      You can use PuttyGen. This page explains the process in detail
    Deleting the additional user account

    The account created following the instructions above shares the same ID that the bitnami user account. If you want to delete this account you need to execute the following command:

    sudo userdel new_username -f
    

    You can confirm that the account has been successfully removed by executing:

    id new_username
    
    Use the 'bitnami' account

    Backup your old authorized_keys:

    $ cp /home/bitnami/.ssh/authorized_keys /home/bitnami/.ssh/authorized_keys.bak
    

    Add your customer key to authorized_keys (PLEASE BE EXTREMELY CAREFUL to avoid losing ssh access at all)

    $ cat ~/my_customer_public_ssh_key >> /home/bitnami/.ssh/authorized_keys
    

    Now you both are able to access the machine as "bitnami".

    You can revert the changes by removing the last line from the /home/bitnami/.ssh/authorized_keys file or by restoring the old authorized_keys file:

    $ cp /home/bitnami/.ssh/authorized_keys.bak /home/bitnami/.ssh/authorized_keys
    
     

    MySQL

    How to connect to MySQL remotely?

    All servers started in BitNami Cloud Hosting are behind a firewall ( AWS Security Group). We only open ports 22, 80 and 443 by default. You can add any other ports  you need (for instance MySQL port 3306) as it is described here

    We recommend using a SSH tunnel for security reasons (the connection will be encrypted). You can learn more about how to use SSH, where to download private SSH keys etc at this page.

    Windows / Putty

    Using Putty, you can first configure your connection as described this page, but before openning the connection, first got to the Putty Connection -> SSH -> Tunnels section and enter the values below, and then click add:

    Source port: 33306
    Destination: localhost:3306
    

    Then start the SSH connection.

    Unix / OSX

    You can create a tunnel executing the following command. More info about private SSH keys and SSH itself at  this page.

    $ ssh -v -N -L 33306:localhost:3306 -i your-key-dir/bitnami-hosting.pem bitnami@your-machine
    

    Tabs end

    Now you can configure your MySQL client in the following way:

    • port: 33306
    • hostname: localhost
    • login: root
    • password: <learn more>
     

    How to connect to MySQL remotely with Navicat?

    The latest version of Navicat supports setting up a ssh tunnel automatically. In the connection properties set the following values:

    • Host Name: localhost
    • Port: 3306
    • User Name: root
    • Password: <learn more>

    Then click SSH tab. Mark “Use SSH Tunnel” and enter the following values:

    • Host Name: your-machine
    • Port: 22
    • User Name: bitnami
    • Authentication Method: Public key
    • Private Key: your-key-dir/bitnami-hosting.pem

    phpMyAdmin or phpPgAdmin

    How to enable phpMyAdmin or phpPgAdmin to be accessed remotely?

    For security reasons, these applications will be accessible only when using 127.0.0.1 as the hostname. If you are using a native installer you can access from your own machine but if you are using a Virtual Machine, Amazon cloud image or Windows Azure cloud image, please check the connection steps below.

    Amazon cloud / BitNami Hosting

    By default phpMyAdmin and phpPgAdmin are not accessible from the 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. Get your SSH private key if you don't have it already. More info

    2. Create the tunnel.

    - If you are in Linux or Mac you can run the following in a Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    $ ssh -N -L 8888:127.0.0.1:80 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.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

    3. 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 ("administrator" for legacy versions) for MySQL or postgres for PostgreSQL database.
    • password: bitnami (for BitNami AMIs), <application password> (for BitNami Cloud Hosting)

    Take a look at this link about how to get your application password for BCH servers

     

    Note: If you have enabled Varnish, it is possible that you changed the Apache port to 81. In this case you should specify this port to access phpMyAdmin

    $ ssh -N -L 8888:127.0.0.1:81 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.com

    Native Installer

    To test your phpMyAdmin installation, first make sure that your Apache and MySQL servers are up and running.  For phpPgAdmin you should check that the PostgreSQL database is running.
     
    To do so, you can use the included "ctlscript.sh" utility. The installdir for Virtual Appliances and AMIs is "/opt/bitnami".
    $ cd your_installdir
    $ ./ctlscript.sh status
    

    If you need to start or stop the servers, you just have to follow the steps described here.

    You can access your phpMyAdmin installation by opening a browser and typing http://127.0.0.1:8080/phpmyadmin or http://127.0.0.1/phpmyadmin. And to access phpPgAdmin, you can type the following urls instead: http://127.0.0.1:8080/phppgadmin or http://127.0.0.1/phppgadmin

    phpmyadmin.png

    For phpMyAdmin the default root user is root, and for phpPgAdmin the default database root user is postgres. The password is the same that you set during the installation.

    Virtual Machine

    If you are running the Virtual Appliance in a secure environment, you can enable it by editing the "installdir/apps/phpmyadmin/conf/phpmyadmin.conf" file and replace "Allow from 127.0.0.1" with "Allow from all" (if your server is running Apache 2.2) or "Require local" with "Require all granted" (if you server is running Apache 2.4 or later) :

      Alias /phpmyadmin "/installdir/apps/phpmyadmin/htdocs"
    
      <Directory "/installdir/apps/phpmyadmin/htdocs">
      # AuthType Basic
      # AuthName phpMyAdmin
      # AuthUserFile "/installdir/apache2/users"
      # Require valid-user
      <IfVersion < 2.3 >
      Order allow,deny
      Allow from all
      Satisfy all
      </IfVersion>
      <IfVersion >= 2.3>
      Require all granted
      </IfVersion>
      ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
      </Directory>
    

    Then you should restart Apache to load the changes:

    $ cd installdir
    $ ./ctlscript.sh restart apache

    Then you can access at the same URL with "/phpmyadmin" or "/phppgadmin", for example http://YOUR_IP/phpmyadmin

    For phpMyAdmin the default root user is root, and for phpPgAdmin the default database root user is postgres. For Virtual Appliances the password is "bitnami" (or "bitnami1" in the Magento case)

    Azure cloud

    By default phpMyAdmin and phpPgAdmin are not accessible from the 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 Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    $ ssh -N -L 8888:127.0.0.1:80 your_azure_user@xxx.cloudapp.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 Azure images) or bitnami1 in the Magento case.

    Tabs end

    Other applications and services

    Dreamweaver

    How to configure Dreamweaver to access server files through a SSH tunnel?

    Dreamweaver does not support SFTP connections with a private key. If you want to access to your BitNami Amazon EC2 server through FTP, you can create a SSH tunnel for FTP connections, sending your requests to your webserver from localhost.

    You should follow the following steps to create the tunnel:

    Server
    Host: ec2-xx-yy-zz.compute-1.amazonaws.com
    Port: 22
    
    Authentication
      user: bitnami
      Use keypair manager: Add your SSH private key 
      (not necessary to convert into ppk format)
    
    Services
     FTP-to-SFTP bridge
       Listen insterface: 127.0.0.1
       Port: 21
    

    • Once you have created the tunnel, you can go to Dreamweaver to configure the server connection.
    • Go to Dreamweaver -> Site -> Manage Sites -> New site -> Servers -> New server
    Connect using: FTP
    FTP address: localhost  Port: 21
    Username: bitnami
    Password: the same password that you set in the server machine for bitnami.
    

     

    If you did not set a password for the bitnami user, you can log in the machine through SSH and run the following command:
    $ sudo passwd bitnami

     

    • You can test now the FTP connection to your server.

    RockMongo

    For security reasons, this applications will be accessible only when using 127.0.0.1 as the hostname. If you are using a native installer you can access from your own machine but if you are using a Virtual Machine, Amazon cloud image or Windows Azure cloud image, please check the connection steps below.

    Amazon cloud / BitNami Hosting

    By default RockMongo is not accessible from the 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. Get your SSH private key if you don't have it already. More info

    2. Create the tunnel.

    - If you are in Linux or Mac you can run the following in a Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    $ ssh -N -L 8888:127.0.0.1:80 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.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

    3. While the tunnel is active you can connect to the web application at http://127.0.0.1:8888/rockmongo  in your browser. The default login is:

    • username: root.
    • password: bitnami (for BitNami AMIs), <application password> (for BitNami Cloud Hosting)

    Take a look at this link about how to get your application password for BCH servers

     

    Native Installer

    To test your RockMongo installation, first make sure that your Apache and mongoDB servers are up and running.
     
    To do so, you can use the included "ctlscript.sh" utility. The installdir for Virtual Appliances and AMIs is "/opt/bitnami".
    $ cd your_installdir
    $ ./ctlscript.sh status
    

    If you need to start or stop the servers, you just have to follow the steps described here.

    You can access your RockMongo installation by opening a browser and typing http://127.0.0.1:8080/rockmongo or http://127.0.0.1/rockmongo.

    rockmongo-1.png

    The default root user is root. The password is the same that you set during the installation.

    Virtual Machine

    If you are running the Virtual Appliance in a secure environment, you can enable it by editing the "installdir/apps/rockmongo/conf/httpd-app.conf" file and replace "Allow from 127.0.0.1" with "Allow from all" (if your server is running Apache 2.2) or "Require local" with "Require all granted" (if you server is running Apache 2.4 or later) :

      <Directory "/installdir/apps/rockmongo/htdocs">
      # AuthType Basic
      # AuthName RockMongo
      # AuthUserFile "/installdir/apache2/users"
      # Require valid-user
      <IfVersion < 2.3 >
      Order allow,deny
      Allow from all
      Satisfy all
      </IfVersion>
      <IfVersion >= 2.3>
      Require all granted
      </IfVersion>
      ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
      </Directory>
    

    Then you should restart Apache to load the changes:

    $ cd installdir
    $ ./ctlscript.sh restart apache

    Then you can access at the same URL with "/rockmongo", for example http://YOUR_IP/rockmongo

    For RockMongo the default root user is root. For Virtual Appliances the password is "bitnami".

    Azure cloud

    By default RockMongo is not accessible from the 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 Terminal in your local machine (using your Public DNS instead of xyz.bitnamiapp.com):

    $ ssh -N -L 8888:127.0.0.1:80 your_azure_user@xxx.cloudapp.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/rockmongo in your browser. The default login is:

    • username: root.
    • password: bitnami (for BitNami Azure images).

    Tabs end

    Comments

    You must login to post a comment.