Access Keys:
Skip to content (Access Key - 0)
Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

Q: Why do I get "Bad configuration option gssapikeyexchange" after upgrading to macOS Sierra?

  • After upgrading to macOS Sierra (10.12) and attempting to run ssh, I see an error message like:
    dhcp-18-111-116-122:~ username$ ssh username@athena.dialup.mit.edu
    /Users/username/.ssh/config: line 2: Bad configuration option: gssapikeyexchange
    /Users/username/.ssh/config: terminating, 1 bad configuration options
    

    or

    /etc/ssh/ssh_config: line 20: Bad configuration option: gssapikeyexchange
    /etc/ssh/ssh_config: terminating, 1 bad configuration options
    

    How do I fix this?

Context

  • You are running macOS Sierra (10.12)
  • You have a pre-existing .ssh/config or /etc/ssh/ssh_config file, possibly with a GSSAPIKeyExchange no setting that was previously required for El Capitan (Mac OS 10.11)

Answer

  • The ssh program in macOS Sierra no longer supports the GSSAPIKeyExchange option
  • Remove or comment out lines containing GSSAPIKeyExchange

Steps

For Unix neophytes here are steps to edit the ssh_config file using the vi editor on Mac:

sudo vi /etc/ssh/ssh_config
  1. Press i key for vi editor insert mode.
  2. Use arrow keys to navigate to lines you want to delete or comment.
    For example, to comment the offending line in an ssh_config script:
    # GSSAPIKey Exchange yes
    
  3. Press esc
  4. Type :w to write the file
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Last Modified:

page-info: unable to locate page


Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki