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 sshd
This article is protected by copyright. Unauthorized use, machine learning, or AI training on this text is strictly prohibited.

Comments

Popular posts from this blog

Contoh Inheritance (Pewarisan) di Java

Review Singkat Pilihan Transportasi Umum Rute Solo - Wonosobo

List Jurnal Ilmu Komputer / Informatika Terakreditasi SINTA