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

    XMLWordPrintable

Details

    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

          erhankarabulut Erhan Karabulut created issue -
          erhankarabulut Erhan Karabulut made changes -
          Field Original Value New Value
          Attachment screenshot-1.png [ 45028 ]
          erhankarabulut Erhan Karabulut made changes -
          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 
          erhankarabulut Erhan Karabulut made changes -
          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 
          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"
           
          erhankarabulut Erhan Karabulut made changes -
          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"
           
          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
            
          slide_o_mix Alex Earl added a comment -

          Is OpenSSH running as a native windows application, or through something like Cygwin?

          slide_o_mix Alex Earl added a comment - Is OpenSSH running as a native windows application, or through something like Cygwin?

          like windows service

          erhankarabulut Erhan Karabulut added a comment - like windows service
          slide_o_mix Alex Earl added a comment -

          Is this the OpenSSH that you can enable in Windows 10? I am just trying to determine how I can test this.

          slide_o_mix Alex Earl added a comment - Is this the OpenSSH that you can enable in Windows 10? I am just trying to determine how I can test this.

          I am using openssh on windows server 2012 , I download x64 version openssh and install my machine 

          erhankarabulut Erhan Karabulut added a comment - I am using openssh on windows server 2012 , I download x64 version openssh and install my machine 
          slide_o_mix Alex Earl added a comment -

          Where did you download it from?

          slide_o_mix Alex Earl added a comment - Where did you download it from?
          erhankarabulut Erhan Karabulut added a comment - https://github.com/PowerShell/Win32-OpenSSH/releases  from here

          Alex , there is a solution ?

          erhankarabulut Erhan Karabulut added a comment - Alex , there is a solution ?
          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.

          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.
          slide_o_mix Alex Earl made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]

          For me the solution was to use:

          /d:/

          nicruo José Medeiros added a comment - For me the solution was to use: /d:/

          thank you 

          erhankarabulut Erhan Karabulut added a comment - thank you 

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/98
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-54394%22

          (Note: this is an automated bulk comment)

          gmcdonald Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/98 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-54394%22 (Note: this is an automated bulk comment)

          People

            slide_o_mix Alex Earl
            erhankarabulut Erhan Karabulut
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: