bad configuration option in git

Yesterday our team member changed two lines in the ssh_config file because it was impossible to get up to go to the bathroom without the ssh tunnel breaking. Now, git can’t pull anything to the machine from our repo. Here is the error we’re getting (git was working fine the day before yesterday):

Fetching origin
/etc/ssh/ssh_config: line 49: Bad configuration option: ClientAliveInterval
/etc/ssh/ssh_config: line 50: Bad configuration option: ClientAliveCountMax
/etc/ssh/ssh_config: terminating, 2 bad configuration options
fatal: The remote end hung up unexpectedly
error: Could not fetch origin

I looked in the ssh_config file, and the lines that were changed look fine to me:

  • I can't see my project in gitweb. How do you configure gitweb properly?
  • Can I rename LOCAL, REMOTE and BASE as used in git mergetool?
  • Clearcase UCM Configuration with Jenkins to get latest baseline Integration code
  • Git disable pushing from local repository
  • How to export/import the Jenkins configuration?
  • Running Cruise Control .NET as a Service
  • ClientAliveInterval 300
    ClientAliveCountMax 2
    

    Is there actually something wrong with these values, or could someone have changed something else? I ask that because I don’t see how those two configuration options could cause this, and I haven’t found any remotely relevant solutions from Google.

  • Git: using nvie's gitflow concept with staging environment
  • Make the current commit the only (initial) commit in a Git repository?
  • catching a git post-receive error in a script
  • git credential.helper=cache never forgets the password?
  • warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal'
  • Git “Cannot create a tree from a not fully merged index”
  • One Solution collect form web for “bad configuration option in git”

    Compare man ssh_config vs man sshd_config. ClientAliveInterval and ClientAliveCountMax are server options, not client options, which is why you are seeing that error. Your ssh client configuration is invalid, causing the client to exit.

    Server configuration options would typically go in /etc/ssh/sshd_config.

    Git Baby is a git and github fan, let's start git clone.