How to Log in to the Hypernode With SSH

Congratulations with your new Hypernode! To access it, you need to use an SSH client.

This tutorial shows how to log in to the Hypernode with PuTTY (for Windows users) or Terminal (Linux and Mac OSX) using SSH.

NB: If you want to create SSH keys, please read the article: Create SSH Keys on Hypernode.

For Windows Users

Log in Using PuTTY

To use PuTTY you need to download this program from the PuTTY website. To connect to Hypernode you’ll have to use your SSH hostname (name.hypernode.io) and username (app).

If you ordered your Hypernode plan or trial via Hypernode.com, you received your SSH hostname and IP address via email as soon as your Hypernode is ready for use.

  • Open to PuTTY

  • Navigate to Session and enter your hostname (or IP address) in the Host name field

  • This should be the name of your Hypernode plan: example**.hypernode.io**

  • Click Open

  • Enter app as your username

  • Congrats! You can now access your Hypernode.

Log in Using the Windows Subsystem for Linux on Windows 10

If you are on Windows 10 and a more experienced user, you can install the Windows Subsystem for Linux.

This way you can simply install the bash shell and all needed GNU Utils to create an environment similar to the hypernode.

To do this, use this excellent howto on howtogeek.

For Linux and Mac OSX Users

Log in Using Terminal (Linux) or iTerm2 (MacOS)

If you ordered your Hypernode plan or trial via Hypernode.com, you received your SSH hostname and IP address via email as soon as your Hypernode is ready for use.

Use the following command to connect to Hypernode:

ssh app@name.hypernode.io

Where name is the name you have chosen when you ordered the Hypernode. If the name of your node is example.hypernode.io the command would be like this:

ssh app@example.hypernode.io

Press ‘Enter’. Congrats! You now accessed your Hypernode

Troubleshooting: Prompted for a Password

The app user on Hypernode does not have a password; authentication works with SSH keys only. If you are prompted for a password, the server did not accept your SSH key.

If you have just added your SSH key in the Control Panel, keep in mind that it can take several minutes before the key is synced to your Hypernode. Wait a few minutes and try again before troubleshooting further.

Do not try to enter a password at the prompt. Repeated failed login attempts can get your IP blocked by fail2ban (see Brute Force Protection below).

If the key is still rejected after waiting:

  • Make sure the key is assigned to the correct Hypernode in the SSH key manager in the Control Panel.

  • Check which key your SSH client offers by running ssh -v app@example.hypernode.io and comparing the fingerprint with the one shown in the Control Panel. The Control Panel shows the MD5 fingerprint, which you can get locally with:

ssh-keygen -E md5 -lf /path/to/your/key.pub

Replace /path/to/your/key.pub with the path to your public key, for example ~/.ssh/id_ed25519.pub or ~/.ssh/id_rsa.pub.

Brute Force Protection

We enabled fail2ban on the hypernode, which is a tool that detects bruteforces by tailing the remote access logs (/var/log/auth.log). IP’s that try to login with incorrect credentials more then 6 times in 20 minutes will be added to the firewall for an hour.

It is possible that you ban your own IP through fail2ban because of extensive testing. You can manage your own whitelist of IP’s that fail2ban needs to ignore. The IP’s added to the WAF whitelist will be completely ignored by fail2ban. If you happen to get blocked yourself, add your IP address to the WAF whitelist.

Via the hypernode-systemctl Tool

You can easily whitelist IP addresses via the command line. First, run the following to check if any IP’s are already whitelisted:

hypernode-systemctl whitelist get waf

Adding to Whitelist

To add more values to your whitelists you can run the following. Please note that descriptions are optional:

hypernode-systemctl whitelist add waf 1.2.3.4 --description "my description"

Removing From Whitelist

To remove values from your whitelists you can run the following:

hypernode-systemctl whitelist remove waf 1.2.3.4

Via Your Control Panel

Customers who log in via my.hypernode.com can allow an IP via the Control Panel by following the steps below:

  1. Log into the Control Panel.

  2. Select the Hypernode.

  3. Go the Allowlistby selecting it from the sidebar on the left:

  4. Add the IP by choosing a rule type, entering the IP and a description.