ssh config completion always ending with '^M'


Over the past years, I have been saving my ssh entries in /home/xxx/.ssh/config .
For example with an entry like this:

Host surf-ibron-test
HostName xxx.xx.xx.xx
User root

You get auto completion by typing ‘surf’ and then .
The annoying thing is that the auto completion always adds these characters: ‘^M’.

koen@localhost ~ $ ssh surf-ibron-test^M

I think everyone has this annoyance since my setup is otherwise pretty default.

I do not see it. Are you sure your file does not have DOS end of line?

Cool. Yea it did. I changed the encoding to ‘unix’ and it’s fixed now. Thanks!