Password was not set for server still asking for password while doing login through ssh on ubuntu

we are facing issue while connecting to ec2 - ubuntu instance with .pem key. WHile login, server is refusing key and asking for SSH password for ubuntu user.

Previously I was able to login with same key and ubuntu user name with no password. But suddenly server is asking for password.

Debug logs -

debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,password debug3: start over, passed a different list publickey,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: RSA SHA256:PioIvV8mmsCU77pV2RJEMhdSxK03/k5KK8+MGQ0mMK8 /home/admins/.ssh/id_rsa debug3: send_pubkey_test debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,password debug1: Trying private key: SafeEntry-Prod.pem debug3: sign_and_send_pubkey: RSA SHA256:C6T+5hddLdgrRtTnImVVi9etqKSKvC+nPevPV6TTyZg debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,password debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: Next authentication method: password ubuntu@18.141.200.107's password:



![prompt](https://i.stack.imgur.com/mfV9P.jpg)