All Collections
Jelastic
SSH
Access via SSH Gate
Access via SSH Gate
Updated over a week ago

To establish a connection via Jelastic SSH Gate, you need first to generate SSH key pair and to add the public key to your account at the dashboard.

Next, click on the Settings button at the top panel of the dashboard to get an SSH connection string for your account.

1-Account-settings.png

Go at SSH Keys (SSH Connect tab will be opened by default) Here, you can find the required information to access an account, including an SSH connection string.

2-Ssh-connect-info.png

Important!: Within the right part of the section you can establish a Web SSH connection to any node directly in the browser.

You can now access either the whole Jelastic account or just a particular container with your local SSH client.

SSH Access to Jelastic Account

- For Linux/macOS/FreeBSD, please follow this steps:

Open your terminal and execute the SSH connection string.

3-Ssh-access-terminal.png

- For Windows, please follow this step:

Download and run your SSH client (e.x. PuTTY).

Go to the Session tab in the left-hand list and fill in the Host Name (or IP address) and Port fields in accordance with your SSH connection string.

4-Ssh-access-putty.png

Important!: To add your private SSH key with PuTTY, download and run the Pageant tool. Click the Add Key button, and choose the proper SSH key file.

5-Add-private-key-pageant.png

1- By finishing the above steps, you will see a list of environment groups (with a number of containers within, provided in brackets) and ungrouped environments available for your account. Enter the appropriate number the select the required point.

6-Cloud-account-ssh.png

Important!: Only running environments can be accessed.

2- After selecting an environment, you will see a full list of its containers, grouped by layers. Herewith, the master node (required for clustering, scaling, cloning, etc) is marked with the [M].

7-Cloud-environment-ssh.png

Each container is provided with node id, LAN IP, WAN IP, and Alias data. Enter its number to access the required node.

Direct Access to Container

You can go directly to the necessary container, skipping the steps of choosing the appropriate environment and node. But first, state the proper container ID (can be seen at the dashboard next to the corresponding node) at the beginning of the connection string.

8-Node-id.png

For example, to access the Tomcat container (image above), you should add the 36864- prefix to the default account connection string as shown below:

ssh [email protected] -p 3022

It can be useful to automate scripts or to set up up application configurations ( ex. Capistrano).

Did this answer your question?