Skip to main content

Command Palette

Search for a command to run...

Setting up Public Key Auth SSH & Allow root

Updated
1 min read

configuration file

nano /etc/ssh/sshd_config

change

#AuthorizedKeysFile      .ssh/authorized_keys .ssh/authorized_keys2

#TO

AuthorizedKeysFile      .ssh/authorized_keys .ssh/authorized_keys2

allow root remote

#PermitRootLogin prohibit-password
# TO
PermitRootLogin yes

restart ssh

systemctl restart ssh
4 views

More from this blog

andrizan

24 posts

WARNING: This blog exists purely as notes for a forgetful coder.