Cannot SSH into my Bluefield-2 DPU even though password is not changed

My issue is that I myself set the password for the DPU. The same password works when I login via RSHIM but it says “permision denied” when I login via SSH. I have tried eveything I could to change and remove the password/remove it.

The following list is what I tried, but nothing has worked so far -

  1. tried logging in via rshim and changing the password as well as deleting it - didn’t work

  2. I configured settings to “PermitEmptyPasswords yes“ - did not work

  1. Tried starting, restarting and enabling ssh throgh rshim - did not work

  1. tried rebooting dpu from the server - did not work

At the end, all these methods still did not give me any results and i am still stuck here…what to do?

sudouser1@amma:~$ ssh ubuntu@192.168.100.4
ubuntu@192.168.100.4: Permission denied (publickey,password).
sudouser1@amma:~$

Hello @vidhijr25

Thank you for posting your query on our community.

Since the same password works through RShim, the password appears to be fine and the issue seems specific to SSH authentication on the DPU.

As next check, confirm that the ubuntu account is not locked and then restart SSH:

sudo passwd -S ubuntu
sudo passwd -u ubuntu
sudo systemctl restart ssh

After that, please try SSH again:

ssh ubuntu@192.168.100.4

If it still fails, please check whether any additional SSH config files under /etc/ssh/sshd_config.d/ are overriding the password authentication settings, since those can take precedence over the main sshd_config.

Hope this helps.

Thanks,

Bhargavi