Commands to disable ssh password authentication, enable ed25519 pubkey authentication, and make the sshd start at boot.
cat<<'EOF'>>/etc/ssh/sshd_config
PermitRootLogin without-password
UsePAM no
ChallengeResponseAuthentication no
PasswordAuthentication no
PubkeyAcceptedKeyTypes=+ssh-ed25519
EOF
mkdir -p /etc/ssh/keys-root/
cat<<'EOF'>>/etc/ssh/keys-root/authorized_keys
ssh-ed25519 keyhere
ssh-rsa keyhere
EOF
chmod 700 -R /etc/ssh/keys-root
chmod 600 -R /etc/ssh/keys-root/authorized_keys
/etc/init.d/SSH restart
vim-cmd hostsvc/enable_ssh
esxcfg-advcfg -s 1 /UserVars/SuppressShellWarning