zsh:51: command not found: zsh

Hello, I got this error message (as title) when I want to ssh to my PC. After I enter the password, I got this message and then the session was closed. I never met this problem before. I totally have no idea where this error comes from. Could anyone give me some advice about how to fix it?