Cannot generate SSPI context

Facing a problem while connecting from POS Terminal machine to Store DB machine.

While opening the POS application, system is throwing “Cannot generate SSPI context” in event viewer, even the POS Terminal is able to ping the store DB machine successfully.

After restarting the POS Terminal, POS application is working fine and no such error is coming, but again after 2-3 attempts it throws the same error.

This problem is coming on random basis.

Any inputs will be helpful.

Nitish