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
This post will teach you the second method to solve the SSH key problem.
Step 1: Prepare a linux server directly, (any one, this is not difficult for MJJ)