Problem with Publish over SSH

瀏覽次數:14 次
跳到第一則未讀訊息

nosl...@hotmail.com

未讀,
2021年3月5日 下午6:59:252021/3/5
收件者:Jenkins Users
I am running Jenkins on UBuntu on a Vagrant VM

I created the ssh keys in ~/.ssh

From Jenkins > Configure > Publish over SSH, in the Path to key I enter "/home/vagrant/.ssh/id_rsa.pub"

I get a "No such file: '/home/vagrant/.ssh/id_rsa.pub"" error.  

Why doesn't Jenkins see this file?

Thanks

Arnaud bourree

未讀,
2021年3月6日 凌晨2:52:542021/3/6
收件者:jenkins...@googlegroups.com
Hi,

You should use id_rsa which is private key and add id_rsa.pub which is public key to allowed keys in target platform. 

Regards

Arnaud 


--
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/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.

Slide

未讀,
2021年3月6日 上午9:15:462021/3/6
收件者:Jenkins User Mailing List
If the keyfile is on an agent, it won't work. You need the private key on the controller and then specify the path on the controller to where the key is located.



--

nosl...@hotmail.com

未讀,
2021年3月8日 上午9:40:192021/3/8
收件者:Jenkins Users
Thank you slide and Arnaud.
Your advice helped me successfully configue it.
回覆所有人
回覆作者
轉寄
0 則新訊息