-2

enter image description here

What is the way to create and configure ssh public keys for jenkins user account?

And when I tried to give some random text in the field, I was shown error "Unexpected line"

Any leads? enter image description here

Maahi
  • 61
  • 5
  • 2
    Does this answer your question? [how to setup ssh keys for jenkins to publish via ssh](https://stackoverflow.com/questions/37331571/how-to-setup-ssh-keys-for-jenkins-to-publish-via-ssh) – Mostafa Hussein Aug 08 '23 at 10:32
  • Hello, thanks for your response. My use case is that I have a jenkins instance on windows computer using .war file. Now to access jenkins cli using SSH, I need to add a SSH public key for the jenkins user account. Is your answer still relevant to my question/problem? – Maahi Aug 08 '23 at 10:38
  • Yes, the concept is the same. just generate the ssh key and add the public to the textbox – Mostafa Hussein Aug 08 '23 at 11:28
  • Okay, but generate ssh key from where? sorry Im totally new to all of this. – Maahi Aug 08 '23 at 12:21
  • have you checked these answers? https://stackoverflow.com/questions/31813080/generate-new-ssh-keys-in-windows-10-11 – Mostafa Hussein Aug 08 '23 at 12:58
  • Okay, let me clarify something, im not trying to add the ssh keys for my windows user account, but for jenkins user account. – Maahi Aug 09 '23 at 08:29
  • Thank you. My problem is solved as I used gitbash tool. – Maahi Aug 09 '23 at 14:25

0 Answers0