SSH not working for remote Mac server

Not sure if SSH is supported yet or not for remote Mac servers, but within terminal in Cursor I get the following:

gbhall@Gareths-MacBook-Pro x % ssh gbhall-mac@Gareths-Mac-mini.local
ssh: connect to host gareths-mac-mini.local port 22: Undefined error: 0

Works in VS Code and elsewhere in terminal on my MacBook.