sudo openssl rsa -in /etc/ssh/ssh_host_rsa_key -text -noout | grep Private-Key 

sudo ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ""

sudo sed -i 's/# RSAAuthentication yes/RSAAuthentication yes/g' /etc/ssh/ssh_config

sudo sed -i '$ a IdentityFile ~/.ssh/id_rsa' /etc/ssh/ssh_config

sudo sed -i '$ a HostKey /etc/ssh/ssh_host_rsa_key' /etc/ssh/sshd_config

sudo cp ~/.ssh/id_rsa /etc/ssh/ssh_host_rsa_key

sudo cp ~/.ssh/id_rsa.pub /etc/ssh/ssh_host_rsa_key.pub

sudo systemctl restart sshd

sudo systemctl status sshd