ssh creds difficulties

6 views
Skip to first unread message

Gregory Edigarov

unread,
Jul 21, 2017, 12:20:48 PM7/21/17
to 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

unread,
Jul 21, 2017, 1:29:20 PM7/21/17
to 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
Reply all
Reply to author
Forward
0 new messages