ssh creds difficulties

6 vues
Accéder directement au premier message non lu

Gregory Edigarov

non lue,
21 juil. 2017, 12:20:4821/07/2017
à Jenkins Users
Hello, list.

In one of my servers I have a hundred of sites, updates of them maintained via jenkins.
now I want to change configuration of the server so that sites will belong each to its own user, and
only this user will have permissions to write the files. permissions will be: site:site, 755 on dirs, 644 on files.

i know that jenkins can handle this via ssh credentials plugin. what I do not want is to add the
credentials manually, because this is error prone. therefore I am looking for a way to either add credentials with ssh keys programmatically
 or, generate ssh keys directly from jenkins. is this possible?
also, whatever way you can advice for me to accomplish task.

thank you.

Stephen Connolly

non lue,
21 juil. 2017, 13:29:2021/07/2017
à jenkins...@googlegroups.com
You could script creating that actual keys with ssh-keygen and then use either the credentials plugin's REST api or CLI api to add them to Jenkins.

Have a look in the docs folder of https://github.com/jenkinsci/credentials-plugin for the (still in progress) user guide



thank you.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b8785aa7-364c-4608-b200-81f2673f7f24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message