OpenSSh
install
sudo pacman -S openssh
usage
sudo systemctl enable --now sshd
# sudo ufw allow 22/tcp
# ip addr show
Enable Pubkey Authentication
sudo vim /etc/ssh/sshd_config
PubkeyAuthentication yes
PasswordAuthentication no
sudo systemctl restart sshd
ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
# Copy from ~/.ssh/id_rsa.pub
Client PC:
mkdir ~/.ssh
vim ~/.ssh/authorized_keys
# Paste into
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys