Benutzer-Werkzeuge

Webseiten-Werkzeuge


contabo:setup

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
contabo:setup [2021/11/01 12:58] jodoccontabo:setup [2024/12/22 23:17] (aktuell) – [Set up SUDO] jodoc
Zeile 1: Zeile 1:
 ====== Contabo server setup ====== ====== Contabo server setup ======
  
-Just after setup of Ubuntu 20.04 server at Contabo there are several things to do. +Just after setup of Ubuntu 20.04 VPS server at [[https://www.contabo.de|Contabo]] there are several things to do, mainly to set up a proper and save user account as well as the ssh daemon.
  
 ===== Preparation ===== ===== Preparation =====
Zeile 15: Zeile 15:
 </code> </code>
  
-So to perform this step, login as root ans call+So to perform this step, login as root and call
  
 <code> <code>
Zeile 25: Zeile 25:
 ===== Set up SUDO ===== ===== Set up SUDO =====
    
-Login into server as root, add a user, make her part of ''sudo'' group+Login into server as root, add a user (''johndoe'' in this example)add user to ''sudo'' group
  
 <code> <code>
-adduser jrathert +adduser johndoe 
-adduser jrathert sudo+adduser johndoe sudo
 </code> </code>
  
-Log out and in with ssh as the new user and try if sudo works (by updating the apt database)+Log out and in with ssh as the new user and try if ''sudo'' works (e.g., by updating the apt database)
    
 <code> <code>
Zeile 38: Zeile 38:
 </code> </code>
  
-If everything worked, disable the root account (by deleting and locking it, see ''man passwd''). **Attention**: You can not login as root or ''su'' to it afte rthis step.  +If everything worked, disable the root account (by deleting and locking it, see ''man passwd'').  
 + 
 +:!: **Attention**: You can not login as root or ''su'' to root after this step. So please make sure that your new sudo user setup and ssh **really work**! 
  
 <code> <code>
Zeile 47: Zeile 49:
  
 Make sure ssh daemon listens on different port and does not allow root login: Make sure ssh daemon listens on different port and does not allow root login:
-  * Set ''Port 3141'' +  * Set ''Port <your port here>'' 
-  * Set ''PermitRootLogin no'' # or comment our ''yes''+  * Set ''PermitRootLogin no'' # or comment out a line with ''yes''
  
 <code> <code>
Zeile 58: Zeile 60:
  
 <code> <code>
-ssh -p 3141 jrathert@<server>  +ssh -p <yourport here> johndoe@<server>  
 </code> </code>
  
Zeile 66: Zeile 68:
 ===== Update Ubuntu ===== ===== Update Ubuntu =====
  
-<code>sudo apt update && sudo apt upgrade</code>+As a last step to make sure everything is up-to-date.
  
-====== Set up other applications/servers ======+<code>sudo apt update && sudo apt upgrade</code>
  
-  - Reconfigure ssh daemon (port) +====== Using the server ======
-  - Set up relevant servers: Apache, MariaDB, Exim - see separate documents+
  
 +Of course there are many other relevant servers / daemons to be configured appropriately. The descriptions are, however, not Contabo specific, documentation can be found in the server section.
  
-asd+  *  Apache httpd server, incl. SSL via letsencrypt 
 +  *  PHP as part of Apache 
 +  *  MariaDB as database 
 +  *  Exim as local mail daemon
  
contabo/setup.1635767939.txt.gz · Zuletzt geändert: 2021/11/01 12:58 von jodoc