Okay, I saved it and ran the following commands, but still showing an error, so I know I messed up somewhere. (Ubuntu 22.04.1 LTS)
sudo systemctl daemon-reload
sudo systemctl enable cloudc2.service
sudo systemctl start cloudc2.service
sudo systemctl status cloudc2.service
Active: failed (Result: exit-code) since Wed 2024-01-17 17:12:22 UTC; 11s ago
Process: 11402 ExecStart=/usr/local/bin/c2-3.3.0_amd64_linux -hostname x -https -db /var/cloudc2/c2.db (code=exited, status=1/FAILURE)
Jan 17 17:12:22 ip-x systemd[1]: Started Hak5 Cloud C2.
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [*] Initializing Hak5 Cloud C2 v3.3.0
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [*] Hostname: x
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [*] DB Path: /var/cloudc2/c2.db
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [*] Validating License
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [*] License Valid
Jan 17 17:12:22 ip-x c2-3.3.0_amd64_linux[11411]: [!] Error starting SSH server: listen tcp 0.0.0.0:2022: bind: address already in use
Jan 17 17:12:22 ip-x systemd[1]: cloudc2.service: Main process exited, code=exited, status=1/FAILURE
Jan 17 17:12:22 ip-x systemd[1]: cloudc2.service: Failed with result 'exit-code'.
~