Cockpit is a web-based server management tool that gives you a graphical interface for system administration tasks — monitoring resources, managing services, configuring storage, and more. Lightweight and runs on port 9090.
sudo apt update sudo apt install cockpit -y
sudo systemctl enable --now cockpit.socket
Check the status:
sudo systemctl status cockpit.socket
sudo ufw allow 9090/tcp
Open your browser and navigate to:
https://your-server-ip:9090
Log in with your system username and password (user with sudo privileges).
Extend Cockpit's functionality with additional modules:
sudo apt install cockpit-machines cockpit-podman cockpit-storaged -y
If you want to access Cockpit via your domain (e.g., cockpit.yourdomain.com):
server {
listen 443 ssl;
server_name cockpit.yourdomain.com;
location / {
proxy_pass https://127.0.0.1:9090;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}