How to add SSH public key to local user ?

17 views
Skip to first unread message

Dropveter

unread,
Dec 3, 2019, 1:15:14 PM12/3/19
to Jenkins Users
Hi,

My current quest is to figure out how to add an SSH public key to a local user.
After searching multiple sources on the internet, I still have not been able to find any helpful information on this.

My preferred method would be using the 'Configuration-as-Code' plugin, but I am happily willing to settle for a Groovy script.

Help is greatly appreciated!

Mark



Ivan Fernandez Calvo

unread,
Dec 4, 2019, 11:22:18 AM12/4/19
to Jenkins Users
Could you give more details of your use case? When you said `local user` it is local to master or agent? also it depends what would be the use that you make of the key (git, ssh, ...)
Reply all
Reply to author
Forward
0 new messages