Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54394

Publish Over SSH plugin jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to change to remote directory [D:]] Error

    Details

    • Similar Issues:

      Description

      Firstly I have used Bitvise ssh server and with configuration in screenshot . I could connect very well. But I changed my ssh server to OpenSSH and started to get this error.

      When I connect with putty I can read-write all directories . I think there is no issue about user permission. When I leave blank remote directory my built artifact go to /user/myuser . 

      But if I specify a remote directory , I got error about "Failed to change to remote directory"

       

      I already tried

      • D:
      • D:\
      • D:/

      in remote directory
       

        Attachments

          Activity

          Show
          erhankarabulut Erhan Karabulut added a comment - https://github.com/PowerShell/Win32-OpenSSH/releases  from here
          Hide
          erhankarabulut Erhan Karabulut added a comment -

          Alex , there is a solution ?

          Show
          erhankarabulut Erhan Karabulut added a comment - Alex , there is a solution ?
          Hide
          slide_o_mix Alex Earl added a comment -

          No, I tried some tests and it seems like the jsch library won't work with openssh for Windows for some reason.

          Show
          slide_o_mix Alex Earl added a comment - No, I tried some tests and it seems like the jsch library won't work with openssh for Windows for some reason.
          Hide
          nicruo José Medeiros added a comment -

          For me the solution was to use:

          /d:/

          Show
          nicruo José Medeiros added a comment - For me the solution was to use: /d:/
          Hide
          erhankarabulut Erhan Karabulut added a comment -

          thank you 

          Show
          erhankarabulut Erhan Karabulut added a comment - thank you 

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              erhankarabulut Erhan Karabulut
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: