Cloud Commander
Overview
Cloud Commander (cloudcmd) is an open-source, web-based file manager with the classic two-panel (orthodox) layout and a built-in text editor. It lets you browse, create, rename, copy, move, delete, pack, upload and download files on a server from any device with a browser, without exposing SSH or a remote desktop.
This guide covers the deployment and configuration of Cloud Commander on Ubuntu 24.04 on Azure using SecureAnyCloud Azure Marketplace images. The image installs the latest stable Cloud Commander release from the npm registry and pins the exact version (recorded in /opt/cloudcmd/VERSION).
Cloud Commander runs on Node.js 22 LTS under systemd as the unprivileged cloudcmd system user and binds to loopback only (127.0.0.1:8000). nginx is the sole network-facing surface and terminates TLS on port 443, reverse proxying to Cloud Commander. Port 80 redirects to HTTPS.
Secure by default. Cloud Commander ships upstream with authentication turned off and a well-known default login, which would leave an unprotected deployment open to anyone who can reach it. This image turns authentication on and generates a unique administrator credential on each virtual machine's first boot.
Only a one-way hash of the password is written to the server configuration, and the plain password is placed in a root-only file for the administrator to read. There are no shared or default credentials, and nothing is baked into the image. The built-in terminal and console are disabled to keep the attack surface minimal, and the file manager root is a dedicated managed workspace at /srv/cloudcmd rather than the whole operating system filesystem.
What you get:
- The latest stable Cloud Commander release, installed from npm on Node.js 22 LTS and run under systemd as the unprivileged
cloudcmdsystem user - Cloud Commander bound to loopback only (
127.0.0.1:8000), so it is never exposed to the network directly - nginx terminating TLS on :443 and reverse proxying to Cloud Commander, with HSTS and sensible security headers, and forwarding WebSocket upgrades for the live interface
- Port
:80returns a301redirect to HTTPS for every path except an unauthenticated/healthzendpoint (HTTP 200) for load balancer probes - Authentication on by default with a unique admin credential generated per VM on first boot. Only the one-way hash is stored in the server config, and the plain password lands in a root-only file.
- The built-in terminal and console disabled by default to minimize the attack surface (re-enable them behind the same login if you need them)
- A self-signed TLS certificate regenerated per VM on first boot (its Subject Alternative Names include the VM public IP, hostname and
127.0.0.1). Replace it with your own CA-signed certificate for production. - A built-in self-test at
/usr/local/bin/cloudcmd-selftestthat proves the authenticated upload and download round trip end to end over TLS - Ubuntu 24.04 LTS base with the latest security patches applied at build time
- Azure Linux Agent for seamless cloud integration and SSH key injection
- 24/7 SecureAnyCloud support with a guaranteed 24-hour response SLA
Prerequisites
- An Azure subscription with permission to deploy virtual machines
- An SSH key pair for administrative access to the VM as the
azureuseraccount - A Network Security Group that allows inbound TCP
443(HTTPS) and80(redirect) from the networks that should reach the service, and22(SSH) from your management network only - A recommended size of Standard_B2s or larger
Deploy from the Azure Portal
- Find the Cloud Commander on Ubuntu 24.04 LTS image in the Azure Marketplace and select Create.
- Choose your subscription, resource group and region.
- Select a VM size (Standard_B2s or larger) and provide your SSH public key for the
azureuseraccount. - On the Networking tab, allow inbound
443and80from your users, and restrict22to your management network. - Select Review + create, then create the VM.
- When the VM is running, browse to
https://<your-public-ip>/.
Deploy from the Azure CLI
Deploy the image from the command line, restricting SSH to your management network. Replace the example values with your own before you run the command.
# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:cloudcmd-ubuntu-24-04:default:latest
az vm create \
--resource-group my-resource-group \
--name cloudcmd \
--image sac1647283583153:cloudcmd-ubuntu-24-04:default:latest \
--size Standard_B2s \
--admin-username azureuser \
--ssh-key-values ~/.ssh/id_rsa.pub \
--public-ip-sku Standard
# Allow the web UI from your users and SSH from your management network only
az vm open-port --resource-group my-resource-group --name cloudcmd --port 443 --priority 1001
az network nsg rule create --resource-group my-resource-group --nsg-name cloudcmdNSG \
--name allow-ssh --priority 1002 --destination-port-ranges 22 \
--source-address-prefixes <your-mgmt-cidr> --access Allow --protocol TcpWhen the VM is running, browse to https://<public-ip>/.
Retrieve your per-instance admin credential
Authentication is on by default. Each VM generates its own admin username and password on first boot, written to a root-only file. Read it over SSH.
ssh azureuser@<vm-ip> 'sudo cat /root/cloudcmd-credentials.txt'The file contains the CLOUDCMD_USER, CLOUDCMD_PASS and CLOUDCMD_URL for this specific VM. Keep it secret. The server configuration only ever stores a one-way hash of the password, never the plain text.
Sign in to the web interface
Browse to https://<vm-ip>/. Because the certificate is self-signed per VM, your browser shows a certificate warning the first time. Accept it to proceed, or install the per-VM certificate, or place a CA-signed certificate in front (see Step 9).
Sign in with the username and password from Step 3.
Cloud Commander presents its classic two-panel file manager, with the function key bar along the bottom for common operations. The left and right panels can each browse a different directory, which makes copying and moving files between locations straightforward.
Double-click a folder to open it in the active panel. Here the left panel has navigated into the documents folder while the right panel stays at the workspace root, ready to copy files between the two.
Edit files with the built-in editor
Select a text file and press F4 (or double-click it) to open the built-in editor. Edits are saved straight back to the server. This is convenient for tweaking configuration files or notes without opening an SSH session.
Work with files and the operations bar
Click a file to select it, then use the function key bar or the on-screen buttons to act on it.
- F3: view
- F4: edit
- F5: copy
- F6: move or rename
- F7: new folder
- F8: delete
Upload files by dragging and dropping them into the panel. Download files from the file menu. All operations run as the unprivileged cloudcmd user within the managed workspace.
Verify the deployment
SSH to the VM as azureuser and confirm that the services are running and Cloud Commander is bound to loopback only.
systemctl is-active cloudcmd nginx
sudo ss -tlnp | grep 8000Both services report active, and Cloud Commander listens on 127.0.0.1:8000 only. nginx is the only component exposed on :80 and :443.
Run the built-in self-test. It reads this VM's credential and proves the full authenticated round trip over TLS.
- An unauthenticated request is refused.
- An authenticated directory listing succeeds.
- A test file is uploaded, then downloaded back byte for byte.
sudo /usr/local/bin/cloudcmd-selftestTLS and the per-instance certificate
nginx terminates TLS on port 443 and redirects plain HTTP on port 80 to HTTPS. Confirm the redirect and the unauthenticated health probe from the VM.
curl -s -o /dev/null -w 'port 80 -> HTTP %{http_code}\n' http://127.0.0.1/
curl -sk -o /dev/null -w 'healthz over TLS -> HTTP %{http_code}\n' https://127.0.0.1/healthzPort 80 returns 301 and the health endpoint returns 200. An unauthenticated request to the file API is refused with 401, while a request carrying this VM's credential succeeds with 200.
The self-signed certificate is regenerated per VM on first boot, with the VM IP and hostname in its Subject Alternative Names.
Replace the certificate for production
The per-VM certificate is self-signed, so browsers warn on first use. For a public deployment, put a real certificate in front. The simplest approach is to point a DNS name at the VM and obtain a free certificate with Certbot.
# Point https://<your-domain> at this VM first, then:
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d <your-domain>Alternatively, terminate TLS at an Azure Application Gateway or a load balancer in front of the VM and forward to port 443.
Change the workspace root or enable the terminal
By default the file manager is rooted at /srv/cloudcmd, and the built-in terminal and console are disabled for security. Both are controlled by /opt/cloudcmd/.cloudcmd.json.
To point the manager at a different directory, or to enable the terminal behind the existing login, edit that file and restart the service. Afterward, browse back to https://<vm-ip>/.
# Edit the root ("root": "/srv/cloudcmd") or enable the terminal ("terminal": true),
# then apply the change. Browse to https://<vm-ip>/ afterwards.
sudo nano /opt/cloudcmd/.cloudcmd.json
sudo systemctl restart cloudcmdThe baked version and this VM's credential summary are recorded on the VM. The password line is redacted below. Read the full value from the root-only file in Step 3.
Security notes
- No default login. Authentication is on by default, and a unique admin credential is generated on each VM's first boot. Only a one-way hash is stored in the server configuration. The plain password lives in the root-only
/root/cloudcmd-credentials.txt. - Loopback-only application. Cloud Commander binds to
127.0.0.1:8000and is only reachable through the nginx TLS reverse proxy on:443. Keep it that way, and let nginx (or a load balancer) be the sole network-facing surface. - Terminal and console disabled. The built-in remote shell surfaces are off by default. Enable them (Step 10) only if you understand that they grant command execution as the
cloudcmduser to anyone who signs in. - Scope the workspace. The manager is rooted at a dedicated
/srv/cloudcmdworkspace, not the whole filesystem. Keep the root scoped to the data you intend to manage. - Restrict access. Allow
443only from the networks that need it, keep22restricted to your management network, and replace the self-signed certificate with a CA-signed one for production. - Rotate the credential by regenerating it and restarting the service, or by placing your own identity-aware proxy in front.
Support
This image is backed by 24/7 SecureAnyCloud support with a guaranteed 24-hour response SLA. Contact sales@secureanycloud.com for assistance.
Cloud Commander is open-source software distributed under the MIT License and is free. The SecureAnyCloud charge covers packaging, hardening, security patching, image maintenance and support.
Deploy on Azure
Launch Cloud Commander on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com