I am using jenkins to build and publish my project. I am using the Publish Over SSH plugin to push my artifacts to the server. I was able to configure only one ssh key for the plugin in the Jenkins setting . Is it possible to add multiple keys and multiple hosts to that plugin
Asked
Active
Viewed 3,397 times
2 Answers
3
To add multiple keys for different hosts, Just add host and tick advanced options. You will see 'Use password authentication or use a different key', tick this box and enter your new key. Hope this helps!

Amit K
- 31
- 1
2
Yes, you can add multiple keys and hosts to the plugin. After you install the plugin, open any job and go to configuration. Here you can add multiple servers (Hosts) and keys for each of the server.

Arun Kumar
- 382
- 1
- 7
-
Can you please explain the steps to do the same? – ketan Mar 29 '18 at 11:02
-
Steps: Add a new server and provide name, hostname, username. Then click on Advanced. Paste the private key in the box with label key. – Prakash Jul 29 '19 at 10:56