Re: wodSFTP using SCP? (General questions)

by BGILBERTBMI, (6570 days ago) @ wodDamir

Below is my connect:

SSH.Prompt := 'regex[$ #>] $';
SSH.Connect;

This is the results that get printed from OnStateChange:

Stated Changed Connecting to server (from Disconnected from server)

Stated Changed Connected to server - idle (from Connecting to server)

Stated Changed Receiving data from server (from Connected to server - idle)

Stated Changed Connected to server - idle (from Receiving data from server)

This is the code to do my upload:

//turn on blocking
SSH.Blocking := true;

SSH.WaitFor('regex[$ #>] $');
SSH.Execute('scp /local user@host:/remotpath');

The command waitfor never responds, I don't receive an error. Also what is interesting is that the OnPromptReceived event does not fire. This may be related.

I don't have sample code the would work well in your environment I hope this helps though. Thanks for the help.

Brad

locked

Complete thread: