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 13:31] – [Contabo server setup] jodoccontabo:setup [2024/12/22 23:17] (aktuell) – [Set up SUDO] jodoc
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 40: Zeile 40:
 If everything worked, disable the root account (by deleting and locking it, see ''man passwd'').  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 after this step. So please make sure that your new sudo user setup and ssh **really work**! +:!: **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 49: 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 60: Zeile 60:
  
 <code> <code>
-ssh -p 3141 jrathert@<server>  +ssh -p <yourport here> johndoe@<server>  
 </code> </code>
  
Zeile 68: 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.1635769887.txt.gz · Zuletzt geändert: 2021/11/01 13:31 von jodoc