sudo ufw allow OpenSSH

Category: VPS Management

sudo ufw allow OpenSSH

Allow SSH through the firewall by app profile

OpenSSH is a ufw application profile (a named rule bundle) covering the port your SSH server listens on, normally 22/tcp. Allowing SSH first is the golden rule of firewall setup, because enabling ufw with no SSH rule locks you out of the box. Verify the profile's ports with ufw app info OpenSSH.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.