Problem with Publish over SSH

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Publish over SSH

nosl...@hotmail.com
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Publish over SSH

Arnaud bourree
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 


Le sam. 6 mars 2021 à 00:59, [hidden email] <[hidden email]> a écrit :
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Publish over SSH

slide
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.

On Sat, Mar 6, 2021 at 12:52 AM Arnaud bourree <[hidden email]> wrote:
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 


Le sam. 6 mars 2021 à 00:59, [hidden email] <[hidden email]> a écrit :
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAESUf_DJ-7SHdEE69%3DnBc9iV0vYy0MMtc%2Bwxm_siVmRpdzDQTA%40mail.gmail.com.


--

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeW%2BZbN6UDC8oxR35mLMhunBHtvbcAVgZxjNo_SchC%2B3g%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Publish over SSH

nosl...@hotmail.com
Thank you slide and Arnaud.
Your advice helped me successfully configue it.

On Saturday, March 6, 2021 at 8:15:46 AM UTC-6 slide wrote:
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.

On Sat, Mar 6, 2021 at 12:52 AM Arnaud bourree <[hidden email]> wrote:
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 


Le sam. 6 mars 2021 à 00:59, [hidden email] <[hidden email]> a écrit :
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fd0ff7d5-87fc-446c-8fc6-e09b62c62513n%40googlegroups.com.

--
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 [hidden email].


--

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c1462fe3-2977-4637-b4f1-371e57c350bdn%40googlegroups.com.