Steps

  1. Open /etc/ssh/sshd_config
    1. #PermitRootLogin prohibit-password should be changed to PermitRootLogin yes
  2. Run sudo systemctl restart ssh
  3. By default the root’s password is not set on Ubuntu 20.04 and the error message Permission denied, please try again will appear when attempting to SSH login as a root user. From this reason we need to set root’s password. When prompted enter your current user password followed by new root password
    1. Run sudo passwd