Skip to content

What portion of .ssh/config is safe to share? #51

@jasonkarns

Description

@jasonkarns

This may be a dumb question, but as a person who loves to share (and peek at others') dotfiles, I've long desired to include my ~/.ssh/config file in my dotfiles. Mostly for backup/restore and version history, but also for pointing others to it for guidance.

However, as a veritable security newb, I don't feel comfortable sharing the whole file, for by its nature it contains sensitive data.

Having posted your recommendations for a "secure" SSH configuration, what portions of one's SSH configuration would you consider safe to publish in a dotfiles repo?

Assuming it's safe to publish:

  • KexAlgorithms
  • UseRoaming
  • PasswordAuthentication
  • ChallengeResponseAuthentication
  • PubkeyAuthentication
  • HostKeyAlgorithms
  • Ciphers
  • MACs

What about HostName aliases?

Probably not a good idea to share User? or IdentityFile (though I suppose if one's machine were compromised in order to have access to the identityfile, you're screwed anyway. so merely publishing the filename is not really significant?)

What about any RemoteForward settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions