search
Popular searches:

Hive Shell

hshell image

About Hive Shell

Almost a year ago Hive OS introduced the function of remote access to workers via Teleconsole. This service immediately became very popular among our users for solving various remote maintenance tasks. Unfortunately, it has become very difficult to use this service lately because of instability in the service’s work, so the Hive team has begun to look for an alternative solution, which we are very pleased to present to you.

Introducing Hive Shell

Hive Shell provides remote access to your workers using the Hive OS network infrastructure, and also has its own unique features such as access via an SSH client and console sharing. Let’s take a closer look at Hive Shell.

How to use Hive Shell

In the web interface in the “Remote Access” there are two items “Hive Shell Start” and “Hive Shell Stop”.

hshell image

After starting the service through the menu item “Hive Shell Start” you will see the result of the command hshell image

The result of this command is a clickable link, clicking on which in the browser tab will open the terminal of the worker. You can also open the result of the command execution to take advantage of additional command features such as sending a web link to a technician or connecting using an SSH client (which will be discussed separately).

hshell image

Attention! Send the access link to your worker only to a person you trust.

So it works:

hshell image

Run from console

Hive Shell can be launched both from the web interface and from the console. From the Hive Shell console, start the hssh command (valid parameters start | stop | restart).

Start service: hssh start

Stop service: hssh stop

Restart service: hssh restart

Console sharing

A very important feature of Hive Shell is the ability to share the console. You can watch (or even take part) the actions that are performed by the person with whom you have shared access to the worker through Hive Shell. Using this function is extremely simple - just open the same link that was shared with another person. This is how it looks (on the left - Hive Shell is launched in the FireFox browser, on the right - via the PuTTY client):

hshell image

All actions performed in one console are also displayed in the other.

Using SSH client

With Hive Shell, you can connect to your worker using an SSH client such as PuTTY.

Private key generation

To do this, you need to perform a one-time procedure - generate your private keys which can be done by using the program that is part of the PuTTY package - PuTTYgen (PuTTY Key Generator).

hshell image

Start PuTTYgen and click the “Generate” button, randomly move the mouse cursor over the application field until the progress bar reaches the end. hshell image

Then click the “Save private key” button, you can ignore the warning about saving without a password by clicking “Yes” and save the key on your computer.

Configure SSH Client

Next, you need to configure your SSH client using the generated private key. Run PuTTY, open the Connection section on the left and the SSH subsection in it and get Auth, on the right there will be a file selection menu where you need to select the private key saved in the previous step.

hshell image

After that go to the Session section and save our profile. To do this, set the Host Name - shell.hiveos.farm and the name of the profile, for example - Hive Shell and press the "Save" button to save.

hshell image

In short, it looks like this:

hshell image

Launch PuTTY

The next step is very simple.

  • start Hive Shell and wait for a successful start hshell image
  • open the result of the command hshell image
  • copy session name Hive Shell hshell image
  • launch PuTTY, open the previously saved Hive Shell profile and, using the right mouse button, insert the saved session name as the user name and hit Enter hshell image
  • that’s it! Pretty simple, isn’t it?
hshell image

Remote update of the Hive OS image

With the help of Hive Shell, you can also remotely update your Hive OS image.

Log in to your worker using Hive Shell:

hshell image

Enter the command hive-replace --list:

hshell image

After that, press the number 1.

The latest stable Hive OS image will automatically boot, unpack, and install.

Please note that if you have a slow Internet connection, downloading may take a considerable amount of time.

To prevent the Hive Shell session from interrupting (by default, 30 minutes) perform periodic actions in the window (for example, a mouse click)

After the update is completed, the rig will automatically reboot and the last stable image will be installed