This is how to setup ssh server on Arch linux, commands are below:
# Install required package:
sudo pacman -S openssh
# Edit config file:
sudo nano /etc/ssh/sshd_config
Uncomment and change “Port”
# Enable service startup on system boot:
sudo systemctl enable sshd.socket
# Start service:
sudo systemctl start sshd.socket
# Get your ip address:
ip addr
Source
Setup ssh server on Arch Linux