-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
9
-
6
-
Currently Bamboo escapes files it sends via SCP to a remote server with single quote. On Windows, depending on:
- SSH server and its configuration escaped path is not handled properly, as a result file arrived on host server is wrapped with single quote, e.g 'my_app.exe'
Scope of the issue:
- Provide better support for cases when SSH server can't handle paths properly.
Workarounds
- The following server handle path properly:
- Set PowerShell as the default Windows shell for SSH:
Run this from an Administrator Powershell session
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
- More information: Configuring the default shell for OpenSSH in Windows
Form Name |
---|
Here is the workaround that worked for me (taken from https://github.com/PowerShell/Win32-OpenSSH/issues/895):
On the server with Windows OpenSSH:
Then add %SystemRoot%\System32\OpenSSH to the System Environment PATH variable.
Reboot (services read environments only at computer startup)
The path change allows the scp.exe to be found by powershell.