Steps 3–4 — First Login and Swap
Step 3 — First login
Section titled “Step 3 — First login”In your terminal, using your server’s IP:
ssh root@203.0.113.10It asks whether you are sure — type yes. Your prompt changes to something like root@acme-agent-01.
You are on the server now. Everything you type goes to the machine in the data centre, not your laptop.
Install available updates:
apt update && apt upgrade -yStep 4 — Add swap
Section titled “Step 4 — Add swap”Why it matters: when a machine runs completely out of memory, Linux does not slow down — it picks a running program and kills it. If that is your agent mid-thought, the failure looks bizarre and unrelated to memory.
Swap is a pressure-release valve that turns something died into something got slow for a second.
fallocate -l 4G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfileecho '/swapfile none swap sw 0 0' >> /etc/fstabConfirm with free -h — you should see a Swap row showing 4.0Gi.