{"id":20598346,"url":"https://github.com/kkirsche/ssh-config","last_synced_at":"2026-04-20T00:05:57.224Z","repository":{"id":57528559,"uuid":"55275444","full_name":"kkirsche/ssh-config","owner":"kkirsche","description":"A cross-platform ssh configuration file manager allowing for easily adding and removing host configurations.","archived":false,"fork":false,"pushed_at":"2016-04-05T02:41:14.000Z","size":105,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T01:12:33.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkirsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-02T03:18:05.000Z","updated_at":"2019-12-13T07:55:17.000Z","dependencies_parsed_at":"2022-08-30T11:50:19.580Z","dependency_job_id":null,"html_url":"https://github.com/kkirsche/ssh-config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fssh-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fssh-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fssh-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fssh-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkirsche","download_url":"https://codeload.github.com/kkirsche/ssh-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242232799,"owners_count":20093875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:26:31.127Z","updated_at":"2026-04-20T00:05:57.177Z","avatar_url":"https://github.com/kkirsche.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-config\n[![Build Status](https://travis-ci.org/kkirsche/ssh-config.svg?branch=master)](https://travis-ci.org/kkirsche/ssh-config) [![GoDoc](https://godoc.org/github.com/kkirsche/ssh-config?status.svg)](https://godoc.org/github.com/kkirsche/ssh-config)\n\nA cross-platform sshd configuration file manager allowing for easily adding and removing host configurations.\n\n## Installation\n\n### From Source\n\n```shell\n~ ❯❯❯ go get -u github.com/kkirsche/ssh-config\n```\n\n### Homebrew\n\nComing Soon!\n\n\u003c!-- ```shell\n~ ❯❯❯ brew update \u0026\u0026 brew install ssh-config\n``` --\u003e\n\n## Examples\n\n### Check SSH Configuration File For File Ownership and Permission Errors\n\n```shell\n~ ❯❯❯ ssh-config doctor\n[Doctor Action] Opening local SSH configuration at /Users/kkirsche/.ssh/config\n[Doctor Success] Global configuration file is correctly owned.\n[Doctor Success] Global configuration file is correctly owned.\n\n~ ❯❯❯ ssh-config doctor -v\nUsing config file: /Users/kkirsche/.ssh/config\n[Doctor Action] Opening local SSH configuration at /Users/kkirsche/.ssh/config\n[Doctor Success] Global configuration file permissions are -rw-r--r-- (0644)\n[Doctor Success] Global configuration file is correctly owned.\n[Doctor Action] Opening global configuration at /etc/ssh/ssh_config\n[Doctor Success] Global configuration file permissions are -rw-r--r-- (0644)\n[Doctor Success] Global configuration file is correctly owned.\n```\n\n### Add Entries to Configuration File(s)\n\n```shell\n~/Desktop ❯❯❯ touch testConfig\n~/Desktop ❯❯❯ ssh-config add -r \"1.2.3.4\" -p 22 -u \"example\" -w \"/Users/kkirsche/Desktop/testConfig\" -v Ghost\nUsing config file: /Users/kkirsche/.ssh/config\n[Add Info] Detected passed arguments: [Ghost]. Combined as: Ghost.\n[Add Info] Printing SSH configuration entry to stdout.\n\nHost Ghost\nHostname 1.2.3.4\nPort 22\nUser example\n\n[Add Success] SSH Configuration Entry Successfully Appended\n~/Desktop ❯❯❯ cat TestThis\nHost Ghost\nHostname 1.2.3.4\nPort 22\nUser example\n```\n\n### Show Configuration File(s)\n\n#### Show Current User Configuration File Contents\n```shell\n~ ❯❯❯ ssh-config show user\n# /Users/example/.ssh/config\nHost ExampleWebsite\nHostName 1.2.3.4\nPort 22\nUser toor\n```\n\n#### Show Global Configuration File Contents\n```shell\n~ ❯❯❯ ssh-config show global\n#\t$OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker Exp $\n\n# This is the ssh client system-wide configuration file.  See\n# ssh_config(5) for more information.  This file provides defaults for\n# users, and the values can be changed in per-user configuration files\n# or on the command line.\n\n# Configuration data is parsed as follows:\n#  1. command line options\n#  2. user-specific file\n#  3. system-wide file\n# Any configuration value is only changed the first time it is set.\n# Thus, host-specific definitions should be at the beginning of the\n# configuration file, and defaults at the end.\n\n# Site-wide defaults for some commonly used options.  For a comprehensive\n# list of available options, their meanings and defaults, please see the\n# ssh_config(5) man page.\n\n Host *\n   SendEnv LANG LC_*\n\n# Configuration options and default values (see ssh_config(5) for their meaning):\n#\n#   Host # (no default)\n#   AddressFamily any\n#   AskPassGUI yes # (Apple only)\n#   BatchMode no\n#   BindAddress # (no default)\n#   ChallengeResponseAuthentication yes\n#   CheckHostIP yes\n#   Cipher 3des\n#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour\n#   ClearAllForwardings no\n#   Compression no\n#   CompressionLevel 6\n#   ConnectionAttempts 1\n#   ConnectTimeout # (no default)\n#   ControlMaster no\n#   ControlPath  # (no default)\n#   ControlPersist no\n#   DynamicForward\n#   EnableSSHKeysign no\n#   EscapeChar ~\n#   ExitOnForwardFailure no\n#   ForwardAgent no\n#   ForwardX11 no\n#   ForwardX11Timeout 1200\n#   ForwardX11Trusted no\n#   XauthLocation xauth # Default is to search $PATH.  It is recommended that a full path be provided.\n#   GatewayPorts no\n#   GlobalKnownHostsFile /etc/ssh/ssh_known_hosts,/etc/ssh/ssh_known_hosts2\n#   GSSAPIAuthentication yes\n#   GSSAPIDelegateCredentials no\n#   GSSAPIKeyExchange no\n#   GSSAPITrustDNS no\n#   HashKnownHosts no\n#   HostbasedAuthentication no\n#   HostKeyAlgorithms ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss\n#   HostKeyAlias # (no default)\n#   HostName # (set by command at run-time)\n#   IdentitiesOnly no\n#   IdentityFile .ssh/id_rsa,.ssh/id_dsa\n#   IPQoS lowdelay\n#   KbdInteractiveAuthentication yes\n#   KbdInteractiveDevices # (no default)\n#   KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\n#   LocalCommand  # (no default)\n#   LocalForward  # (no default)\n#   LogLevel INFO\n#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96\n#   NoHostAuthenticationForLocalhost no\n#   NumberOfPasswordPrompts 3\n#   PasswordAuthentication yes\n#   PermitLocalCommand no\n#   PKCS11Provider # (no default)\n#   Port 22\n#   PreferredAuthentications gssapi-with-mic,hostbased,publickey,keyboard-interactive,password  # (set by ssh at run-time)\n#   Protocol 2\n#   ProxyCommand # (no default)\n#   PubkeyAuthentication yes\n#   RekeyLimit 0\n#   RemoteForward # (no default)\n#   RequestTTY auto\n#   RhostsRSAAuthentication no\n#   RSAAuthentication yes\n#   SendEnv # (no default)\n#   ServerAliveCountMax 3\n#   ServerAliveInterval 0\n#   StrictHostKeyChecking ask\n#   TCPKeepAlive yes\n#   Tunnel no\n#   TunnelDevice any:any\n#   UsePrivilegedPort no\n#   User # (set by command at run-time)\n#   UserKnownHostsFile ~/.ssh/known_hosts,~/.ssh/known_hosts2\n#   VerifyHostKeyDNS no\n#   VisualHostKey no\n#   XAuthLocationi xauth\n```\n\n### Supported Properties\nViewable on the [Wiki](https://github.com/kkirsche/ssh-config/wiki/Supported-Properties) for easy access and sharing (and avoid keeping this junked up.)\n\n### Meta\n\n#### Version Number\n\n```shell\n~ ❯❯❯ ssh-config version\n0.0.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fssh-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkirsche%2Fssh-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fssh-config/lists"}