I'm using Jenkins' Publish Over SSH plugin to deploy my builds to a windows machine which has SSH server running. Issue is that I need to deploy the build into E Drive of the target system, but when I try to give E drive location in the "Remote Directory" box of the plugin, it throws Exception as "Unable to change" directory.

Jenkins Error

  • Does Jenkins use its own ssh server, or do you have one already there, like from Cygwin? If it's cygwin the location of the E drive would be /cygdrive/e/ – Eric Renouf Sep 19 '16 at 12:16
  • Jenkins uses its own SSH server and it needs one on the target machine..... and I'm not using Cygwin... – Manish Mishra Sep 22 '16 at 12:01

Finally got a solution: To use a directory name with : in it use this notation:

like "E:\Test" use this


Update: after comments from @"Brian Ogden"


  • 1
    For me this didn't work. Instead i had to use: /E\:Test/ – geld0r Feb 23 '17 at 13:54
  • @geld0r You're right.... my QA recently reported that against 2012 server my syntax didn't work and he had to do the same what you've suggested.... – Manish Mishra Mar 27 '17 at 14:14
  • @Brian Ogden, by mistake I rejected your suggest, sorry about that – Manish Mishra Apr 10 '18 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.