What AI can help you accomplish
AI is most useful when it receives a small, relevant set of facts and the result can be checked. It can help you:Understand your server
Explain running services, listening ports, resource usage and unfamiliar configuration files in plain language.
Investigate incidents
Build a timeline from logs, rank likely causes and suggest the next read-only diagnostic command.
Watch capacity
Interpret CPU, memory, disk and network measurements and identify trends that deserve attention.
Review changes
Compare a proposed configuration with the current version and prepare a rollback and verification checklist.
Create repeatable work
Turn a successful manual procedure into a reviewed shell script, systemd service or Ansible playbook.
Build documentation
Create an inventory, maintenance checklist, incident report or recovery runbook from verified information.
Choose where the AI works
There are three common ways to use AI with a VPS. Start with the first method and increase access only when you understand exactly why it is needed.A written instruction such as “do not use sudo” is useful, but it is not a security boundary. Linux permissions, a separate account, a separate SSH key and the absence of
sudo are the controls that limit what the agent can actually do.Prepare the VPS before using AI
Before an AI tool receives operational information or access, make sure you have:- a recent backup stored outside the VPS;
- tested a restore procedure at least once;
- SSH key authentication and a secured administrative account;
- external uptime monitoring that works even when the VPS is offline;
- access to the EDIS Global VPS Management Portal and its VNC console for recovery;
- a record of the current firewall, application and network configuration;
- a clear rule about which actions require your approval.
Install an AI terminal tool on your computer
A terminal agent can inspect local files, prepare commands and, when allowed, use the SSH client already installed on your computer. Keeping the tool on your workstation means its credentials and working files do not have to be stored on the VPS. One option is Codex CLI. On macOS or Linux, the current standalone installer is:/permissions in Codex CLI to inspect or change what the agent is allowed to do. Other terminal agents can be used, but they should provide an equivalent way to review commands and restrict execution.
Installation and authentication methods can change. Check the tool vendor’s current documentation before installing it. Do not install a terminal agent as
root merely because it will be used for server administration.Start without direct server access
You can get useful assistance without allowing the AI to connect to the VPS. Run a few read-only commands yourself:Give an AI agent restricted SSH access
If you want a terminal agent to collect evidence directly, create a separate Linux account for it. The following example is suitable for Debian and Ubuntu.1
Create a dedicated SSH key on your computer
Do not reuse your root key or personal administrator key.This creates a private key and a public key ending in
.pub. Keep the private key on the approved workstation.2
Create a passwordless diagnostic account on the VPS
Log in with your normal administrative account, then run:Paste the content of
aiops_ed25519.pub, save the file, and set the correct ownership and permissions:3
Allow access to the system journal only if required
This group lets the account read many systemd service logs without granting Logs can contain URLs, email addresses, customer data, tokens or other sensitive information. Skip this step if the agent does not need log access.
sudo:4
Restrict the account's SSH session
Create Validate the configuration before reloading SSH:
/etc/ssh/sshd_config.d/90-aiops.conf with:5
Test the restricted login
Keep your existing administrative session open and connect in a second terminal:Confirm that the account can perform the intended read-only checks but cannot use
sudo.aiops account should not be added to sudo, docker, lxd, disk or another privileged group. Membership in some of these groups can effectively provide root access even when sudo is unavailable.
Follow the complete SSH security hardening guide before exposing a new VPS to production traffic.
Set rules for the first AI session
Tell the agent what it may inspect and what it must never change. This is an operating rule in addition to the technical account restrictions.Build monitoring before automation
AI should not be the component that decides whether the VPS is online. Use conventional monitoring to collect measurements and raise alerts; use AI to interpret the evidence after an alert. A simple stack might include:- systemd and journald for service state and logs;
- an external uptime monitor for HTTP, TCP and availability checks;
- Netdata for an approachable single-server dashboard;
- Prometheus Node Exporter and Grafana when you need longer-term metrics;
- Git and Ansible for reviewable, repeatable configuration;
- restic, BorgBackup or another off-server backup tool for recovery.
Analyse logs without sharing everything
Do not export every log on the server. Collect the shortest useful time window for the affected service. For Nginx managed by systemd:Let AI propose changes, not silently apply them
When a fix is required, ask the agent to prepare the change as text, a patch or an automation file. Require these seven items:- the exact problem being addressed;
- the exact command or file diff;
- the expected result;
- possible side effects;
- a rollback command or restoration method;
- a verification test;
- a condition that means the change should be abandoned.
A beginner-friendly Windows workflow
For Windows VPS systems, begin with an AI tool on your own computer and paste selected PowerShell output into it. Do not give the agent an Administrator or Domain Administrator account. These commands create a useful read-only snapshot:What not to automate unattended
Do not give an agent unrestrictedNOPASSWD: ALL sudo access. Avoid unattended AI control of:
- disk partitioning, filesystem formatting or storage deletion;
- firewall replacement or SSH authentication changes;
- database migrations or bulk data modification;
- package removal, distribution upgrades or kernel changes;
- user accounts, SSH keys, passwords and API credentials;
- backup deletion or retention-policy changes;
- production reboots and service restarts without health checks;
- payment data, cryptocurrency wallets or customer secrets.
Remove access when the task is finished
An AI-specific key should not remain active indefinitely. Remove its line from/home/aiops/.ssh/authorized_keys when direct access is no longer required. Revoke any API tokens created for the tool, archive the approved report or change record, and review the authentication log for unexpected sessions.
Keep the account only if you have an ongoing process for key rotation, access reviews and monitoring. Otherwise, create fresh time-limited access for the next approved task.
A practical AI-assisted routine
1
Detect the problem
Let monitoring record the start time and affected service.
2
Collect a small amount of evidence
Gather relevant status, metrics and a narrow log window using read-only commands.
3
Remove sensitive data
Exclude secrets, customer information and unrelated log entries.
4
Ask AI to structure the investigation
Require facts, hypotheses, missing evidence and the next safe check.
5
Review a proposed change
Require the exact command or diff, impact, rollback and verification method.
6
Apply through an administrator
Test first where possible, then apply only the approved change with the appropriate account.
7
Verify from outside the VPS
Confirm that the service works for users and that monitoring has recovered.
8
Document what happened
Record the cause, change, result and anything that should be added to the runbook.
Final responsibility checklist
Before each AI-assisted session, confirm that:- the task and allowed actions are clearly defined;
- the agent uses a separate account and SSH key;
- privileged groups and unrestricted
sudoare unavailable; - backups exist outside the VPS and can be restored;
- logs and configuration are reviewed for sensitive data;
- commands and file changes require human approval;
- every change has a rollback and verification plan;
- the AI access can be revoked quickly;
- you understand that the VPS owner remains responsible for the outcome.