Debian/Ubuntu system enables root remote login

 

Debian first connects to SSH with a common account and switches root login

are -

Ubuntu uses

sudo -i

Install basic software to execute code

apt install sudo vim curl wget -y
cat >> /etc/ssh/sshd_config << EOFPermitRootLogin yesPasswordAuthentication yesEOFsystemctl restart sshd