Reset SSH Password

I lost my ssh password for my things gateway (raspi 3b+), will I need to reinstall to get back in? If so, how do I keep my domain if I need to reinstall?

Did you change the password? Since by default it’d be user pi with password raspberry.

Just double checked and it looks like I did reset it.

You could try this? http://mapledyne.com/ideas/2015/8/4/reset-lost-admin-password-for-raspberry-pi

I tried that, I get the following

# passwd pi
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password uncahnged
# uname -a
Linux (none) 4.14.98v7+ #1200 SMP tue feb 12 20:27:48 GMT 2019 armv71 GNU/Linux
# su
bash: cannot set terminal process group (-1): inappropriate ioctl for device
bash: no job control in this shell
root@(none):/# passwd pi
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password uncahnged

what next?

Never mind, I was able to get it reset using this site.