Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Solved Execute SSH... finally SCP

More
15 Feb 2016 12:33 - 15 Feb 2016 15:58 #1 by Josserand BRINON
Execute SSH... finally SCP was created by Josserand BRINON
Hi,

I'm trying to use an "Execute SSH" object, without any success.
To proceed, I have:
- dragged & dropped a SSH directory onto the object,
- defined the SSH_COMMAND and SSH_OUTPUT_FILE.

The response is : "Remote command failed with exit status 1"
And in the output file : "Shell access is disabled !"



:blink: I'm not an expert and I need some help. :whistle:

Thanks.
Attachments:
Last edit: 15 Feb 2016 15:58 by Josserand BRINON.
More
15 Feb 2016 15:04 - 15 Feb 2016 15:10 #2 by Josserand BRINON
Replied by Josserand BRINON on topic Execute SSH... finally SCP
Maybe should I explain what I want to do...?
I want to copy a file from the runtime server to a remote server.

Our provider told us to send it by FTP, port 22. Port 22 is SSH, isn't it?
It is why I'm using an Execute SSH object (and not an FTP Put, as I tried first)... but I'm wondering if this object is only usable with Unix runtime...

And while I'm writing, I'm wondering if it should be better to use an "Send files with SCP"...
Our runtimes are on Windows servers. :oops:
Last edit: 15 Feb 2016 15:10 by Josserand BRINON.
More
15 Feb 2016 16:02 #3 by Josserand BRINON
Replied by Josserand BRINON on topic Execute SSH... finally SCP
It works! :cheer:



Now, I need to contextualize the local path... and it will be perfect.
Attachments:
More
16 Feb 2016 10:03 #4 by Thomas BLETON
Replied by Thomas BLETON on topic Execute SSH... finally SCP
Congrats, you found the right action B)
Indeed file transfer over SSH can be done with Send SCP.

If you want to parameterize the local file path, simply drag and drop a Folder metadata on the SCP action, and set the SCP_LOCAL_FILE property to %x{$NameOfFolderMetadata/tech:path()}x%
More
16 Feb 2016 10:19 #5 by Josserand BRINON
Replied by Josserand BRINON on topic Execute SSH... finally SCP
It is exactly what I did (thanks to this useful documentation about syntaxes ) and it works perfectly.
Thank you Thomas :)
More
16 Feb 2016 10:39 #6 by Thomas BLETON
Replied by Thomas BLETON on topic Execute SSH... finally SCP
OK perfect B)