Re: transfer files between linux servers ssh without password in jenkins

2018-10-04 Thread Ivan Fernandez Calvo
The error "Permission denied" is because the user  piansible  
does not 
have read/write permissions on the source/destination, check it this user 
can read the sources files and can write the destination folder. About to 
not use a password for login, the most common way to make it is by using 
SSH key authentication (see 
https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server)
 

El jueves, 4 de octubre de 2018, 11:58:55 (UTC+2), Sachin Chaudhary 
escribió:
>
> Hi,
>
> I am trying to copy the war file from jenkin server to application server 
> and both are linux boxes.
> I have tried lot of option like
>
> *Option one:*
> ***
> sshpass -p password scp -o StrictHostKeyChecking=no 
> /opt/comp/jetty/9.3.7.v20160115/etc/core/ 
> piansi...@testing.comp.com/opt/comp/jetty/9.3/resources/
>
> *Option two:*
> ***
> scp file-to-copy.war  piansi...@test1xyz.comp.com:/tmp/
> ssh pian...@testing.comp.com 
> sudo su –
> mv /tmp/file-to-copy.war /opt/comp/jetty/9.3/webapps/
>
> Both cases it says "Permsion denied" in jenkins. 
>
> Does this scp command support without password Or any certificate or token 
> need to be creared.
>
> Can anyone have experience in transfering the files between two linux 
> boxes without password?
>
> Thanks,
> Sachin
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4aa0873e-ff7f-46f5-9c6e-5ea57e984cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


transfer files between linux servers ssh without password in jenkins

2018-10-04 Thread Sachin Chaudhary
Hi,

I am trying to copy the war file from jenkin server to application server
and both are linux boxes.
I have tried lot of option like

*Option one:*
***
sshpass -p password scp -o StrictHostKeyChecking=no
/opt/comp/jetty/9.3.7.v20160115/etc/core/
piansi...@testing.comp.com/opt/comp/jetty/9.3/resources/

*Option two:*
***
scp file-to-copy.war  piansi...@test1xyz.comp.com:/tmp/
ssh piansi...@testing.comp.com
sudo su –
mv /tmp/file-to-copy.war /opt/comp/jetty/9.3/webapps/

Both cases it says "Permsion denied" in jenkins.

Does this scp command support without password Or any certificate or token
need to be creared.

Can anyone have experience in transfering the files between two linux boxes
without password?

Thanks,
Sachin

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CABZrFoNrXiqVL3oO%3D2Sy%3DwPtR2xGjedSQwXCtYwAAz4OU54pNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.