ZAP-Hosting Docs

ZAP-Hosting Docs

  • Docs
  • Languages iconEnglish
    • Deutsch

โ€บLinux

Overview

    First Steps

    • Register
    • Contract or Prepaid
    • Preorders
    • Community offers
    • Submit Suggestions

    Support

    • Report problems
    • Create Screenshots

Account

  • Contracts & Prepaids
  • Termination and Cancellation
  • Payment options
  • Two-Factor-Authentication
  • Backup Storage
  • Refer a Friend
  • Cashbox
  • User Management
  • Coupons & Codes
  • Donations
  • Community ads
  • Safety
  • Partner

    • Partner System
    • Partner Guide
    • Use of logo and name

Gameserver - General

  • Cloud vs. Lifetime
  • Resource limit
  • Change the game
  • Up-/Downgrade
  • Databases

    • PHPMyAdmin
    • External database access
  • FTP File Access
  • Restart planner
  • Backups
  • Server crash - What to do?
  • TEBEX Monetization

vServer & Rootserver

  • Rootserver versus vServer
  • What is VNC (Serial console)?
  • Network analysis MTR/WinMTR
  • Linux

    • Initial access (SSH)
    • SFTP Connection
    • SSH Key
    • Two factor authentication
    • Change Password
    • Install Java
    • MariaDB (MySQL) Installation
    • phpMyAdmin
    • FTP Setup
    • FTP Service isn't working
    • Docker
    • Plesk
    • OpenVPN
    • Gameserver / Ts 3 Server Interface
    • Nextcloud
    • Add IPv4 Address
    • SSL-Certificate (Let's Encrypt)
    • Rsync Linux
    • Jitsi Meet
    • Install webserver
    • Linux Remotedesktop (xRDP)
    • Cockpit

    Windows

    • Initial access (RDP)
    • Port Forwarding
    • Add additional IPs
    • No Internet what now?
    • FTP Server Installation
    • MySQL Server Installation
    • Plesk Installation
    • Add/change language
    • Extend disk
    • Farming-Simulator 2019
    • Farming-Simulator 2022
    • V-Rising

Dedicated Server

  • iLO
  • Own ISO
  • Windows Installation
  • Install Debian
  • Install Ubuntu
  • Install FreebSD
  • Install CentOS
  • RAID Configuration
  • Server reset

Webspace & Domains

    Domain

    • What is a domain?
    • Order a domain
    • EasyDNS
    • ProfiDNS
    • ExpertDNS
    • Domain Records
    • Domain Gameserver Redirect
    • Domain TeamSpeak 3 Redirect

    Webspace

    • Add Domain
    • FTP Connection
    • Sending Emails
    • Create SSL Certificate
    • Discord forwarding via domain
    • Install MyBB
    • Install WordPress

Voicebot/Voiceserver

  • Voicebot Connection
  • Become Admin
  • Server configuration
  • Ts3 Backup
  • Teamspeak Query Login

Minecraft

    Administration

    • General commands
    • OP-Permissions
    • Server Config
    • Server Icon
    • Add your own world
    • Manage Worlds
    • Behavior/Resource Packs Installation
    • RCON
    • Whitelist
    • Timings-Report
    • Minecraft-Server Optimization

    Spigot & Bukkit

    • Plugin Uploader

    Bungeecord

    • Server Properties

    Forge

    • Mods Installation

FiveM

  • Dashboard
  • Upvotes
  • Configuration & Administration

    • Change Server Icon
    • Emojis in server name
    • Coloured Servername
    • Use Rcon
    • Own License Key
    • Delete Cache
    • Use Profiler
    • Configure Activity Feed
    • Resource contains prohibited logic?
    • Server not in Serverlist
    • Activate Devtools
    • Enable DLC Gamebuild
    • Gamechange

    Resources & Mods

    • Resource Installation
    • SQL File Import
    • Install Replace Carmods
    • Install Addon Carmods
    • Loadingscreen installation
    • Install ELS
    • Install EUP

    ESX

    • Deactivate the Inventory (F2)
    • Change Money Icon
    • Become Admin over the Database
    • Disable HUD
    • Add Cars to Dealership
    • Add Job-Garage Cars
    • Change Respawnpoint
    • Edit Locales Files

    Dunko VRP

    • Change Money Icon
    • Remove Speedometer

    txAdmin

    • txAdmin Setup
    • txAdmin Interface

    QBCore

    • Become admin

RageMP

  • Installing packages

Alt:V

  • Resource Installation

Satisfactory

  • Connect to the Server (Experimental)

Terraria

  • Become an admin (tShock)
  • Mod Installation (tModLoader)

Source Games

  • GSL-Token
  • Custom Content
  • Sourcemod / Metamod

    • Installation
    • Become an admin
    • Plugins

    CS:GO

    • Server Configration
    • GOTV

    Counter Strike 1.6

    • Become Admin
    • Install Plugins

    Garry's Mod

    • Garry's Mod Server.cfg Modification
    • Garry's Mod TTT Configuration

ArmA 3

    ArmA 3 Allgemein

    • Server.cfg
    • Install Mods
    • Altis Life Ranks
    • Change game mode
    • Upload your own mission file

ARK

  • Become Admin
  • Install Mods
  • Serverlisting Problems
  • Server Configuration

Assetto Corsa

  • Configure Server
  • Configure Server with Content Manager
  • Install Mods

Assetto Corsa Competizione

  • Become Admin
  • Car Slot Requirement

Barotrauma

  • Become Admin

BeamMP

  • Create an Auth Key
  • Install Mods

Conan Exiles

  • Become Admin
  • Server Configuration

Valheim

  • Connect to a Server
  • Manage Savegames
  • Automated Backups
  • Serverlisting Problems
  • Admin Commands & Cheats
  • Valheim Plus
  • Install plugins (BepInEx)

SCP: Secret Laboratory

  • Become Admin
  • Add new roles
  • Colored Servername
  • Pastebin ID
  • ServerMod

    • Install Plugins

    Exiled

    • Plugins Install

ECO

  • Become Admin
  • Whitelist

Factorio

  • Become Admin
  • Install Mods

Multi Theft Auto

  • Become Admin

Space Engineers

  • Become Admin
  • Install Mods

Unturned

  • Become Admin
  • Workshop Content
  • 1st/3rd Person
  • Whitelist
  • RocketMod

    • Install Plugins
    • Adjust Permissions

Don't Starve Together

  • Create Caves

Empyrion

  • Become Admin

Rust

  • Become Admin
  • Connect via RCON
  • Plugins Install
  • Decay

Among Us

  • Connection to the Server

7 Days to Die

  • Become Admin
  • Install Mods
  • Commands

Avorion

  • Become Admin

Last Oasis

  • Create Realm
Edit

VPS: Setting up two-factor authentication for Linux servers

๐Ÿ’พ Install Google Authenticator

First you need to install the Google Authenticator on your Linux vServer/Rootserver. Execute the following command:

sudo apt install libpam-google-authenticator

You will then be prompted to type "Y" to install the package, type this, press Enter and then the Google Authenticator will be installed!

โŒจ Run Google Authenticator

Start the Google Authenticator by typing 'google-authenticator'. Make sure that your window size is sufficient for the QR Code, otherwise press "CTRL+C" and enter it again.

You will now be prompted again if you want to execute it, type "Y" to accept.

You will now get a QR Code. Open your Authenticator app on your smartphone and scan the QR Code.For this example we use the Google Authenticator:

image

Make sure to copy the backup codes, these can each be used once in case you lose your authenticator.

Now the app already shows you the codes you need to log in later. In this case it looks like this:

The following questions are now prompted:

  1. Do you want to save the Google Authenticator configuration?
  2. Do you want only one login every 30 seconds?
  3. Should the time in which a code is usable be increased?
  4. Should only three logins be possible every 30 seconds? (Protection against Brute Force)

For security reasons we recommend to confirm all with Yes.

๐Ÿ’ฝ Configure Google Authenticator

Now we have to adjust the Google Authenticator so that it is also used. This requires two adjustments.

/etc/ssh/sshd_config

Activate the required modules in the /etc/ssh/sshd_config'. Open the/etc/ssh/sshd_config' file by typing

sudo nano /etc/ssh/sshd_config

You are now in a text editor. You can move around with the arrow keys, freely delete text and enter and then press 'CTRL + X' then 'Y' and lastly 'Enter' to save the file.

Make sure that the two lines 'UsePAM' and 'ChallengeResponseAuthentication' are set to 'yes'. Like this:

Save the file with 'CTRL + X' then 'Y' and lastly 'Enter`. Restart SSH afterwards with the following command:

sudo systemctl restart ssh

/etc/pam.d/sshd

Now we add the Google Authenticator to the login in the /etc/pam.d/sshd.Open the /etc/pam.d/sshd file by typing sudo nano /etc/pam.d/sshd.

The last step is to scroll down to the end of the file and enter 'auth required pam_google_authenticator.so'.

Save the file with 'CTRL + X' then 'Y' and lastly 'Enter`

๐Ÿ’ป Log in with 2FA

Now it is time to log in for the first time with 2FA. After you have followed the steps above, all you need to do is restart your SSH connection.

image

You now enter your password as normal. You will be asked for a code, simply enter the recent 2FA code.

Now you are logged in!

โ† SSH KeyChange Password โ†’
  • ๐Ÿ’พ Install Google Authenticator
  • โŒจ Run Google Authenticator
  • ๐Ÿ’ฝ Configure Google Authenticator
    • /etc/ssh/sshd_config
    • /etc/pam.d/sshd
  • ๐Ÿ’ป Log in with 2FA
Rent a Server
Rent a VPSRent a rootserverRent a gameserverRent a TS3 serverRent a Discord MusicbotRent a domainRent a webspace
Social
TwitterInstagramBlogJobsVoucher CodesOur partnersEarn money
Support
ChangelogTicketsupportInterruptionsSmokeping
Legal
TermsImprintPrivacy PolicySecurity
ZAP-Hosting Docs
All content is property of ZAP-Hosting GmbH & Co. KG