SSH Getting Started
Jun 5, 2026
First, install OpenSSH on both the server and the client:
sudo pacman -S openssh
- Enable the SSH service on both machines using the following command. Enabling
sshdon the client is not necessary unless you want the client to accept incoming SSH connections.
sudo systemctl enable --now sshd.service
- Generate an SSH key pair on the client:
ssh-keygen
- Copy the public key to the server. You will be prompted for the password of the user account you are connecting to.
ssh-copy-id <username>@<remote_host>
- Connect to the server:
ssh <username>@<remote_host>