Open up the permissions on the slave.
Caused by: com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.) From: Jason Reslock [mailto:jresl...@gmail.com] Sent: Tuesday, September 30, 2014 5:23 PM To: jenkinsci-users@googlegroups.com Subject: Problem launching ssh slave I'm having trouble launching an ssh slave and I am hoping someone can help me out. I have a slave configured which fails to launch due to a permission error. I will paste the error below. So far I have verified that I am able to ssh and scp to the slave machine from the jenkins master as the user making the call with the correct key. It appears that jenkins is also able to get that far and then fails creating a directory. I am able to scp files to that directory as the same user. How does this plugin copy the slave jar? I looked at the sftpClient code and I don't quite understand what is happening. Does the master ssh to the slave and then launch an sftp request to itself to write the file? Here is the exception: [09/30/14 21:06:06] [SSH] Checking java version of java [09/30/14 21:06:06] [SSH] java -version returned 1.7.0_67. [09/30/14 21:06:06] [SSH] Starting sftp client. [09/30/14 21:06:06] [SSH] Remote file system root /mnt/jenkins does not exist. Will try to create it... hudson.util.IOException2: Could not copy slave.jar into '/mnt/jenkins' on slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:921) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:596) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:232) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.util.IOException2: Failed to mkdir /mnt/jenkins at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:85) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:893) ... 7 more Caused by: com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.) at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555) at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955) at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83) ... 8 more [09/30/14 21:06:06] [SSH] Connection closed. -- 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 HYPERLINK "mailto:jenkinsci-users+unsubscr...@googlegroups.com"jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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. For more options, visit https://groups.google.com/d/optout.