Complete assortment
of hosting services
My.MIRhosting: Customer Portal

to My.MIRhosting

Management and technical support.
I forgot!
Social networking:

cPanel as a Service

  • one click install
  • hourly billing
  • automatic license activation

Cloud hosting with ISPmanager 5 for free!

Deploy in one-click a cloud environment with ISPmanager 5 Lite Control Panel.
License for ISPmanager 5 Lite is free! You save up to 4 euro per month!

Technical support

Technical support
Knowledge Base
Welcome to the MIRhosting knowledge base & documentation

SSH overview


SSH (Secure Shell) is a protocol used to connect securely to a remote container and execute the required commands on it. SSH commands are encrypted and secure: client/server connection is authenticated using a digital certificate, and passwords are protected by being encrypted.

SSH Gateway accepts users’ connections from the internet and then transmits these connections to the desired container, using an internal network.

The authentication procedure in MIRhosting’s SSH Gateway is divided into two independent parts:

  • connection from end user to Gateway (external authentication)
  • connection from Gateway to users’ container (internal authentication)

Both parts of the authentication procedure are based on a standard SSH protocol, using public/private keypairs.


With MIRhosting SSH Gateway, you can easily access:

  • the whole account where you can navigate across your environments and containers using an interactive menu without extra authentication

  • separate containers directly while working with them remotely via additional tools (e.g. Capistrano) or using SFTP and FISH protocols

While accessing containers via SSH, a user receives all required permissions and additionally can manage the main services with sudo commands of the following kind (and others):

sudo /etc/init.d/jetty start sudo /etc/init.d/mysql stop sudo /etc/init.d/tomcat restart sudo /etc/init.d/memcached status sudo /etc/init.d/mongod reload sudo /etc/init.d/nginx upgrade sudo /etc/init.d/httpd help


Note: if you deploy any application, change the configurations or add any extra functionality via SSH to your Jelastic environment, this will not be displayed at the MIRhosting dashboard.


In addition, we provide support of SFTP (Secure File Transfer Protocol) by implementing the threaded daemon for SFTP connections processing. It lets you access, manage and transfer files directly to the container via SSH gateway, and in such a way, ensures data security.

An additional secure network protocol is FISH (Files transferred over Shell protocol). It is supported by a number of popular FTP-clients and file managers (e.g. Midnight Commander, Konqueror, lftp, Krusader, etc) and permits a user to securely access and manage a container’s file system.


Generate SSH Key

The steps of SSH key generation depends on the system you use:


For Linux/MacOS

Generate a new SSH key (dsa or rsa type) using an ssh_keygen tool:

  1. Initiate generation with the following command: $ ssh-keygen -t dsa
  2. 2. Navigate to the file to get the key ~ $ ~/.ssh $ cat id_dsa   known_hosts ~/.ssh $ cat
  3. Copy the generated SSH key.

Note: in the above example, we generated a dsa SSH key. You can also use a rsa key. To generate it, follow the same method, but state rsa value instead of dsa.


For Windows

  1. Download and run an SSH keygen tool, for example, PuTTYgen:



2. Specify the following parameters:

  • choose SSH-2 RSA or SSH-2 DSA key type
  • enter the desired number of bits (e.g. 2048)

Click Generate.



3. Copy the generated key from the output field at the top of the window.



Add SSH Key

Now, you can add the generated SSH key to your MIRhosting account.

1. Open the MIRhosting dashboard and navigate to the upper toolbar. Click the Settings button.



2. In the opened Account settings tab, navigate to an SSH Access option.



3. Click the Add SSH Key button and paste the previously generated key to the required Key field. The Title field will be automatically populated if your key already contains this value.



Click Add Key.

4. As a result, the added SSH key will appear in the list.



In this way, you can add several keys or delete any if they are unnecessary.


Note: the added SSH key is attached to your account, but not just to a separate environment.


SSH Access to a MIRhosting Account

Now let’s see how you can access your MIRhosting account with all of its environments and containers via SSH.

Open the MIRhosting dashboard and navigate to the upper toolbar. Click the Settings button.



In the opened Account settings tab, navigate to an SSH Access option.

Click the link in the note to open your SSH gateway.  As a result, you’ll access Shell Handler via console automatically.

Or, just copy the given command line and run it via your console (SSH client).



The further steps of SSH access to the account depends on the system you use.

For Linux/MacOS

  1. Open your terminal and enter SSH connection string from the Settings > SSH Access tab at the dashboard.

Note: all the commands should be executed at your local machine’s user, similar to one you’ve used during SSH key pair generation, in order to avoid permission/connection errors.



  1. You will see a list of environments available for your account. Please select the required environment by entering its list number.

Note: you can only access running environments.



  1. After that, you’ll see a full list of containers provisioned for the chosen environment.

Beside each container its node ID and LAN IP address are stated. To access the container, enter its list number.



  1. Now using shell assistance, you can proceed to setting the required configs.



Shell access comes with the risk of accidentally damaging your application. So please pay special attention to the actions you perform here.


For Windows

To establish the SSH connection for Windows OS, you need to have a private key on your local machine which corresponds to the public one, previously added to the MIRhosting dashboard. Therefore, perform the following steps:

  1. Save a private version of your SSH key (we use PuTTY tools as an example).



2. Download and run PuTTY SSH agent (named Pageant). In the opened window click Add key button and navigate to your local file with private SSH key.



3. Then you can click the Close button. Pageant will be rolled to the tray. DO NOT exit this tool until your SSH session is closing, otherwise the connection will be lost.

4. Download and run your SSH client (PuTTY as an example). Navigate to the Session tab in the left-hand list.

5. Fill in the Host Name (or IP address) field with your SSH connection string, that can be seen in the Settings > SSH Access tab at the dashboard. Also specify 3022 Port number.

Select the Open button.



6. You’ll be shown the console with a list of environments available for your account. The further steps are the same as for Linux/MacOS/FreeBSD OS.


Direct SSH Access to the Container

You can also “jump” directly to the necessary container, skipping the steps of choosing an appropriate environment and node.

To perform this, you need to know the required container ID. It can be retrieved using the previously described method of SSH access with the interactive menu. There, you can see a list of all available containers and their ID numbers (the nodeid value).



Use the nodeid value of the required container in the command of the following type:

ssh {nodeid}-{uid}@{SSH_gateway} -p 3022

{uid} and {SSH_gateway} values are presented in the MIRhosting dashboard (Settings > SSH Access).

For example, in order to access a MySQL-5.5.34 container in accordance with the gateway we use in this instruction, we need to enter the following command: ssh -p 3022

This option can be useful while working with tools for deployment and setting up configurations at the remote container. For example, such tools as Capistrano.