#SSH Public keys. 192.168.1.21 is my main login server
#install openssh-server
dietpi-software install 105
ssh-keygen #just one time on the master
ssh 192.168.1.ccc #c is the client server
**NOTE** might have to remove the authorized_keys file with:
cd /root/.ssh
rm authorized_keys
#do this to move you cert from your rootkey server to client
#do this from the client
scp root@192.168.1.21:/root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
#### DONE you should be able to login with out passwords now ####
#### ERRORS Below ####
### if the scp copy command above doesn't work you might need to install. Open-ssh client
dietpi-software install 0
### Later on if you get offending host errors on your server cause you installed a new OS, you may have to run this command
# on your server, the green 6 is the offeding key replace with the command below.
sed -i '6d' ~/.ssh/known_hosts
#if your running a os like Raspbian that doesn't have root enabled
#root login stuff
sudo su
passwd
nano /etc/ssh/sshd_config #allow ssh for root
Find this line:
#PermitRootLogin prohibit-password
Replace by this one:
PermitRootLogin yes
service ssh restart