Resin local ssh on win10: "syntax error near unexpected token `then'"

Hi pimterry,
I’m using win10, and so far I was trying with plain cmd, and git bash. Cmd fails with errormsg, but git bash has no feedback.

Here is the error from cmd: