ssh-import-id icon indicating copy to clipboard operation
ssh-import-id copied to clipboard

config for custom providers

Open steverweber opened this issue 2 years ago • 0 comments

it's sad to see the hard coded paths for two providers and lack of custom providers setup in config /etc/ssh/ssh_import_id.

I would have expected... something like the following for the config file. Keep in mind you should almost never hardcore url's in source code files.

{
     "_comment_": "default provider URL",
     "URL": "https://myprovider.yahoo/%s/sshkeys",
     "provider": {
          "lp": "https://launchpad.net/~%s/+sshkeys",
          "gh": "https://api.github.com/users/%s/keys",
          "myprovider": "https://myprovider.com/%s/sshkeys"
    }
}

steverweber avatar Nov 09 '22 14:11 steverweber