sudo apt install openssh-server
sudo systemctl status ssh
sudo vi /etc/ssh/sshd_config
# PermitRootLogin prohibit-password
PermitRootLogin yes
# PasswordAuthentication yes
PasswordAuthentication no
PubkeyAuthentication yes
sudo apt install openssh-server
sudo systemctl status ssh
sudo vi /etc/ssh/sshd_config
# PermitRootLogin prohibit-password
PermitRootLogin yes
# PasswordAuthentication yes
PasswordAuthentication no
PubkeyAuthentication yes