`
iii123789z@instance-20240529-065856:~$ sudo -i
root@instance-20240529-065856:~# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sed -i ‘s/^#PermitRootLogin ./PermitRootLogin yes/’ /etc/ssh/sshd_config
sed -i ‘s/^#PasswordAuthentication ./PasswordAuthentication yes/’ /etc/ssh/sshd_config
systemctl restart sshd
root@instance-20240529-065856:~# C
root@instance-20240529-065856:~# passwd
New password:
Retype new password:
passwd: password updated successfully
root@instance-20240529-065856:~#
`