SSH Server in Archlinux
Installation
Install openssh package
sudo pacman -S openssh
Configuration
Edit /etc/ssh/sshd_config
sudo vim /etc/ssh/sshd_config
Change default port, ex: 39122
Port 39122
Generate SSH key pair
ssh-keygen
that command will generate key pair in /home/username/.ssh/id_ed25519, add this line in /etc/ssh/sshd_config
HostKey /home/linuxluv/.ssh/id_ed25519
configuration done, save the file
check the configuration using this command
sshd -t
start the ssh service
sudo systemctl start sshdThis article is protected by copyright. Unauthorized use, machine learning, or AI training on this text is strictly prohibited.

Comments
Post a Comment