Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Solved Execute SSH... finally SCP

More
15 Feb 2016 12:33 - 15 Feb 2016 15:58 #1 by Josserand BRINON
Josserand BRINON created the topic: Execute SSH... finally SCP
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
Josserand BRINON replied the topic: Execute SSH
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
Josserand BRINON replied the 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
Thomas BLETON replied the 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
Josserand BRINON replied the 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
Thomas BLETON replied the topic: Execute SSH... finally SCP
OK perfect B)