Create the keyfiles using this method:
https://helpfultechnotes.com/guide/251 Use WinSCP to install the .ssh keyfiles in the server. Create profile in WinSCP, test and save it. Goto Edit, Advanced, then SSH-->Authentication. Pick the keyfile (converting it from OpenSSH format if needed). Then use Tools button and "Install Public Key Into Server". Copy to Clipboard
nano /etc/ssh/sshd_config.d/dietpi.conf
Change/Edit the lines so that they match this: Copy to Clipboard
PasswordAuthentication no
PubkeyAuthentication yes
Then restart the SSH service for this to take effect Copy to Clipboard
systemctl restart ssh
|