Passwords don't work after server migration

Is it using the same hash-algorithm? Perhaps there is one that is not installed in your snap?
With the same config.php, you should have everything for the right salts.