Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Remote SCP command had error: scp: 'C:/Installation/Trunk/': Protocol not available

anastasiosk_Doble June 10, 2019

When I try to deploy an artifact via Bamboo using the SCP task, I get this error message:

Failed to upload file 'C:\Bamboo-Home\xml-data\build-dir\6520833-16678913\xxxx xxxx - xxxx xxx xxx.msi'
"net.schmizz.sshj.xfer.scp.SCPRemoteException: Remote SCP command had error: scp: 'C:/Installation/Trunk/': Protocol not available"

FYI: The file name a spaces. 

I remote in to the bamboo machine and i execute the scp command via windows command prompt, the files was copied.

Command line:

"scp "C:\Bamboo-Home\xml-data\build-dir\6520833-16678913\xxxx xxxx - xxxx xxx xxx.msi" user1@computer:/installation/Trunk" 

 

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
June 11, 2019

As it mentions about the missing protocol, shouldn't you add the "file://" protocol to make it happy?

anastasiosk_Doble June 11, 2019

I tried adding "file://" it still did not work. 

Please click on the link to see image of the task configuration.

Task config

All my computer are Windows OS.

Like I said I'm able to transfer a file from Bamboo computer to the host computer using the SCP command in a window command prompt.

anastasiosk_Doble June 11, 2019

I tried adding "file://" it still did not work. 

Please click on the link to see image of the task configuration.

Task config Image

All my computer are Windows OS.

Like I said I'm able to transfer a file from Bamboo computer to the host computer using the SCP command in a window command prompt.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events