ssh-import-id
ssh-import-id copied to clipboard
config for custom providers
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"
}
}