Skip to content

Access the VPS

Daniel Tischner edited this page Sep 15, 2021 · 1 revision

Overview

The bot is hosted on a Virtual Private Server (VPS) by Hetzner. The machine can be reached under the DDNS togetherjava.duckdns.org.

Access to it is usually granted only to members of the Moderator-Team.

Guide

In order to get access to the machine, the following steps have to be followed:

  1. Generate a private-/public-key pair for SSH. This can be done by executing the following command:
ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/together-java-vps
  1. Put the key pair into your .ssh folder (Windows C:\Users\YourUserNameHere\.ssh, Linux ~/.ssh)
  2. Give the public key to someone who has access already
    3.1. The person has to add your public key to the file ~/.ssh/authorized_keys
  3. Add the following entry to your .ssh/config file:
Host togetherjava
HostName togetherjava.duckdns.org
IdentityFile ~/.ssh/together-java-vps
User root
Port 22
  1. Connect to the machine by using the command ssh togetherjava, you should get a response similar to:
  2. Congrats 🎉, you are now logged in. Once you are done, close the connection using logout.
Clone this wiki locally