Hello,
I'm currently in the process of writing a script to get developers' environment set up. I would like to add ssh authentication to stash in the script, but I'm having some trouble. Is there a way I can add an ssh key to stash via the rest api or some way using curl or wget? I've tried using curl and emulating the request:
curl --user USERNAME:PASSWORD https://STASH_SERVER/plugins/servlet/ssh/keys/add --form "text=MY_SSH_KEY"
But no luck there. I don't have to programatically create a user, as the user already exists in stash at the time someone would run this script.
Thanks!