Skip to main content

Enable SSH on CachyOS

- views AI Assisted

CachyOS is Arch-based, so pacman handles packages and systemctl handles services.

1. Install OpenSSH

sudo pacman -S openssh

2. Enable and Start the SSH Service

sudo systemctl enable --now sshd

The --now flag both enables the service on boot and starts it immediately. Verify it's running:

systemctl status sshd

3. Allow SSH Through the Firewall (UFW)

sudo ufw allow ssh

Or explicitly by port:

sudo ufw allow 22/tcp

If UFW isn't enabled yet:

sudo ufw enable

4. Connect

ssh username@host

Replace username with your CachyOS username and host with the machine's IP or hostname.

See the ArchWiki page on OpenSSH for advanced configuration.

Subscribe