HiveOS remote access: Setting up remote access via ssh to rigs running Hive OS

Hive OS Linux commands for beginners x
Hive OS Linux commands for beginners

HiveOS remote access: Setting up remote access via ssh to rigs running Hive OS: Chat “Two Bitcoins” in the person of Maxim Shmelev has prepared a new article about the operating system for mining Hive OS. In the first article, Maxim talked about installing, configuring, using a Linux build for Hive OS miners. This time we will talk about another important point – “how to configure remote access to a rig with Hive OS via ssh”.


We definitely recommend that you familiarize yourself with our detailed material about the RaveOS mining platform. The system helps to monitor farms and, if necessary, make changes to their work. What is especially important, from February 1, 2021, miners of the 2Miners pool can use an unlimited number of rigs on the platform, that is, it will become completely free for them.

On Windows farms, many miners use TeamViewer for remote control and this is quite convenient. Linux has a completely different ideology, and here, in fact, we do not need a graphical shell at all, but a console – the command line is enough.

You Might Want To Read This:   HiveOS commands: Linux Commands for Beginners | Intermediate| Advance
Screenshot 1.png
HiveOS remote access

Of course, Hive OS has a graphical interface, but it is only needed for the operation of the nvidia-smi utility, which is responsible for overclocking “green” cards. And so it was possible to do with the console altogether.

Hive OS is perfectly monitored and administered through the hiveos.farm web interface. Here we can fully manage the miners: change pools and wallets, manage the settings for overclocking cards and their power consumption.

Why then do we need access to the console? Well, let’s say that agent-screen freezes and the farm does not respond to commands via the Web, or you decided to update the version of the miner … In these cases, you need direct access to the system or access to the console via ssh. We will deal with setting up the latter.

If the rigs are on the same subnet with your computer, you don’t need to set up anything special. Depending on which system your computer is running, there are several access options.

You Might Want To Read This:   How to connect to hive using OpenDev Watchdog: Lets Take a Peak

From under MacOs, simply launch the terminal and connect:

Admins-MacBook:~ admin$ ssh user@25.22.86.14

The default password is “1” and voila, we’re inside:

Setting up remote access via ssh to rigs running Hive OS – PuTTY

To access from under windows, we need a small utility called Putty (Please do not confuse it with Pussy in the search engine, otherwise you risk not finishing the setup)

Screenshot 2.png

Once in the console, we get full access to Hive OS. In an amicable way, it is worth learning a few basic Linux commands. Then you can easily reboot the rig, if necessary, and fix the config for the miner, and at a party, wipe your colleagues’ nose by inserting a couple of console commands into the conversation.

But we will not teach you the commands, but we will return to setting up remote access.

Let’s say that our rigs will be installed remotely, in another place, city and even in another country. It’s not so easy to connect here. A dedicated solution is needed, but TeamViewer is, alas, not an option. For Linux, this package is absolutely inconvenient and looks like crutches.

You Might Want To Read This:   How to update amd drivers in hiveos: Amd driver update command

There is also an option to configure OpenVPN – this is somewhat more complicated than the solution that we offer.

We suggest using the Hamachi utility. It allows you to link computers into one network that have access to the Internet, but are at the same time in different places. The solution is simple and convenient, but with its own limitations.

The free version has a limit of 5 computers on 1 network. And then – pay. But do not rush to be sad, you do not have to pay. First, you can create multiple clusters of 5 computers.

In general, when you have 4+ rigs, you will already play enough and set up access only on business. ))

Well, the choice is made, let’s start setting up. First, let’s set up our computer from which remote access to the rigs will be carried out.

We go to the site https://accounts.logme.in – register and go to the created account.

You Might Want To Read This:   Hive OS Ethereum Mining Farms: Best Software for Bitcoin (ETHminer)

Next, download the utility for your operating system:

Screenshot 4.png

Attention! We download the Host version! Have you downloaded it? Install and run! Then everything is generally simple and boring – choose from the menu Create a new  network (Create new network):

Screenshot 5.png

We give the name of our network and set the password to access it.

For example, the network name is MyRigs

And the password is ******

This completes the host configuration on our computer!

In principle, all these settings for creating a network can be done via the web at https://secure.logmein.com/central/Central.aspx, but there it is more and more confusing and still constantly reminders pop up, which is free only up to 5 computers online, and therefore it is worth subscribing for $ 49.

Aha! I’m already running, jumping over puddles. Here I will mine a million BTC and in general I will completely buy your entire desk!

For now, okay, let them work. And we are going to “spoil” our farm. The Linux version of Hamachi can be found at: https://www.logmein.com/ru/labs.

You Might Want To Read This:   Hive OS 2.0 - How to add a custom miner: Configuring Phoenix Miner
Screenshot 3.png

There are many options, let’s try to figure them out. Hive OS is based on Ubuntu distribution, so we need a DEB package. With this figured out, then you need to choose the 64-bit or 32-bit version. To do this, we need to find out the bit depth of our Hive OS. This is easy to do.

We go to the rig via ssh and give the command:

root@grand_ma:~# uname –a

In response, we get:

Linux grand_ma 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Great, we have a 64-bit system, which means we need a package: logmein-hamachi_2.1.0.174-1_amd64.deb

But, do not rush to download it to your computer. Why do we need it on our computer? There, the wallets that are original for ether and bitcoin barely fit. Therefore, we will not download anything to our computer. We need the utility in the riga – we will immediately download it there.

You Might Want To Read This:   ASIC connection for : How do you add / Install Asics to Hiveos?

We return to the terminal and give the rig the task to download the file we need:

root@grand_ma:~# wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.174-1_amd64.deb

After entering the command, we should see something like the following:

screenshot 6.png
screenshot 6.png

Great, the package is loaded, then you need to configure it:

root@grand_ma:~# sudo dpkg -i logmein-hamachi_2.1.0.174-1_amd64.deb

Screenshot 7.png
Screenshot 7.png

And actually install the Hamachi package:

root@grand_ma:~# sudo apt-get install logmein-hamachi

Screenshot 8.png
Screenshot 8.png

This completes the installation. Simple, isn’t it? Already imbued with the power of the Linux console? This is not for you to click with a mouse. We are going to mine a million BTC, but with a mouse this is not an option at all.

Since we have Hamachi installed, it’s time to start it:

Also in the console we print:

root@grand_ma:~# sudo hamachi login

and then we connect to our network, which we previously created using the utility on the computer:

root@grand_ma:~# sudo hamachi join MyRigs ******

where, as we remember, MyRigs is the network name, and ****** is the actual network password. By the way, if we don’t remember, then I remind you that we chose a name and set a password a few paragraphs above.

You Might Want To Read This:   How to download HiveOS: Torrent & Zip File (Archive) - Simple Steps To Profit

Well, our farm is connected to the Hamachi network and it seems like we can safely take it to the place of permanent installation. Let’s check the connection? We open our Hamachi utility on the computer and see:

Screenshot 9.png

Our farm is connected to the hamachi network and has been assigned IPv4 / IPv6 virtual addresses.

Thanks to this circumstance, we will be able to interact with the farm via ssh, regardless of where it will be located. We just connect using a virtual address, for example:

screenshot 10.png

Now you can definitely safely take our farm and take it to the plantation!

Simple, isn’t it? We set up and took the farm to the fields, while maintaining full control over it!

But what if the farm is already in the fields? Go and set it up there?

I have one rig just installed in another area and I don’t want to go there at all. I look out the window, and behind the glass it is snowing and a fat aunt with a thin dog. Brrr. I don’t want to go outside.

You Might Want To Read This:   Hiveos set rig password as system: Burning image USB Flash Drive( Rig, Wallet & Farm)

I will solve problems without getting up from my chair. We have not some kind of Windows, but Hive OS!

Open your browser and go to your account at hiveos.farm. We select a rig that is already installed remotely and to which we will configure remote access. Sorry for the tautology.

In the rig control panel, scroll down the page, we need the -Linux Shell Execute item:

screenshot 11.png

What are we going to do here? Yes, the same thing that was done through the terminal. Straight by the points:

wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.174-1_amd64.deb

sudo dpkg -i logmein-hamachi_2.1.0.174-1_amd64.deb

sudo apt-get install logmein-hamachi

sudo hamachi login

sudo hamachi join MyRigs ******

We give each command in turn and control the execution on the rig panel. After executing the command, a log will appear:

screenshot 13.png

After completing all the commands, we will connect our field rig to the Hamachi network and have full access over it!

So, without haste, over a cup of tea, we spent this evening with benefit and in a good mood. Instead of wringing your hands running around your office, apartment or even down the street, looking into the eyes of others and shouting to them: “Bitcoin is already 50,500! Sixteen five hundred, Karl, are you bringing carrots and a carton of milk from the store ?? !! “

You Might Want To Read This:   Hiveos shell default password: Change password, disable Hive OS access service

For questions about Hive OS, look for answers in our chat.