The error "Permission denied" is because the user piansible <http://[email protected]/opt/comp/jetty/9.3/resources/>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/ > [email protected]/opt/comp/jetty/9.3/resources/ > > *Option two:* > *********** > scp file-to-copy.war [email protected]:/tmp/ > ssh [email protected] <javascript:> > 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 [email protected]. 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.
