When we use command “ssh” with auto-completion, we get this error result.
This is because we used the editor “sublime text” to edit the config before, which used the line endings of Windows. Then we can edit the setting of the sublime text editor to Mac OS.
Now we can get the desired result.