Debian first connects to SSH with a common account and switches root login
Ubuntu uses
are -
Ubuntu uses
sudo -i
apt install sudo vim curl wget -y
cat >> /etc/ssh/sshd_config << EOFPermitRootLogin yesPasswordAuthentication yesEOFsystemctl restart sshd