Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

OpenSSh

install

1

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

  1. enable SSH on Arch Linux