Permit inbound SSH traffic.
Section: Firewalling with nftables and iptables
Allow SSH with nftables
bash
bash
sudo nft add rule inet filter input tcp dport 22 ct state new,established acceptExplanation
Permit inbound SSH traffic.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Firewalling with nftables and iptables