~/.ssh/config line 50: garbage at end of line; “#”.

~/.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.

One thought on “~/.ssh/config line 50: garbage at end of line; “#”.

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *