Unable to connect to Windows SSH instance using OpenSSH version greater than 9.5.0.0

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: ec2-plugin
    • None
    • Environment:
      Jenkins version: 2.519
      Java: Java 21
      EC2-Plugin: 1949.vf7e0fa_c3b_5b_c

      Jenkins runs in AWS Fargate cluster
      Jenkins EC2 agents: Windows Server 2019, java 21

      Jenkins fails to connect to Windows SSH EC2 instances when using an OpenSSH version greater than 9.5.0.0 with error:

      validateCommandStatusCode(ScpHelper[ClientSessionImpl[Administrator@/X.X.X.X:22]])[scp -p -t -- C:\Windows\Temp\init.bat] advisory ACK=1: scp: error: unexpected filename: C:\Windows\Temp\init.bat for command=C0700 16 C:\Windows\Temp\init.bat 

            Assignee:
            Robert
            Reporter:
            Robert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: