Default SSH Port: What It Is & How to Change It
The default SSH port is 22. Learn why changing it reduces attack surface, how to change it on Ubuntu and Debian, and how to open the new port in UFW and firewall rules.
vmheaven.io / troubleshoot
Common VPS error messages, diagnosed and fixed.
The default SSH port is 22. Learn why changing it reduces attack surface, how to change it on Ubuntu and Debian, and how to open the new port in UFW and firewall rules.
Install fail2ban to automatically block brute-force attacks on SSH, web servers, and other services. Covers installation, configuration, custom jails, and monitoring.
Everything about the default RDP port 3389 — how to change it for security, open it in Windows Firewall and UFW, and connect from any device.
Fix 'add-apt-repository: command not found' on Ubuntu, Debian, and WSL in one command. Caused by missing software-properties-common package.
Fix 'bash: conda: command not found' after installing Miniconda or Anaconda. The shell init block is missing. One-command fix for bash and zsh.
Fix 'curl: command not found' on Ubuntu, Debian, Alpine, CentOS, and Docker. curl is missing on minimal Linux images — one-line install per distro.
Fix 'docker: command not found' on Ubuntu, Debian, and CentOS. Docker may not be installed, or your user is not in the docker group. Full install guide included.
Fix 'make: command not found' on Ubuntu, Debian, and macOS. Install build-essential (Linux) or Xcode Command Line Tools (macOS) to compile from source.
Fix 'npx: command not found' after installing Node.js. npx ships with npm 5.2+. Fix for nvm installs, old Node versions, and broken global PATH.
Fix 'ssh: connect to host port 22: Connection refused' on a Linux VPS. Covers firewall rules, SSH daemon failures, wrong port, and rescue mode.
Fix 'sudo: command not found' on minimal Debian installs, Docker containers, and VPS images. Install sudo and add your user to the sudoers group.
Fix 'vite: command not found' after installing Vite locally. Vite is a local dev dependency — run it via npx, pnpm exec, or add it to package.json scripts.
VPS CPU pegged at 100%? Find and kill the offending process. Covers top, ps, cryptominer detection, and how to resolve high load without losing your server.
Why your VPS keeps rebooting itself and how to stop it. Covers kernel panics, OOM killer, hardware watchdog, and reading crash logs after an unexpected restart.
How to fix 'No space left on device' on a Linux VPS. Find what is consuming disk space, clean up safely, and prevent it from happening again.
Fix 'wget: command not found' on macOS, Ubuntu, Debian, Alpine, and minimal Linux installs. Includes one-line install commands and a curl fallback.