~/.ssh/config line 50: garbage at end of line; “#”.
From man ssh_config
Empty lines and lines starting with ‘#’ are comments. Otherwise a line is of the format ”keyword arguments”.
So the problem is that you have something like:
CheckHostIP No # comment here
Solution: Put comment on it’s own line.
2 thoughts on “~/.ssh/config line 50: garbage at end of line; “#”.”
I encountered a problem where one of the directories in the path to the identify file contained a space.
The solution was to put double quotes around the path.
The double quotes worked for me , Happy Coding !!