RSync?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
needhelp12
Posts: 4
Joined: Thu 22 Mar 2012 22:52

RSync?

Post by needhelp12 » Thu 22 Mar 2012 23:32

I am using Delphi and I am in the process of trying to use 'rsync' via 'ssh' in order to "download" a few files from a Linux server onto a Windows client.

Via the use of a 'TScFileStorage' and a 'TScSSHClient' components, I am able to establish a connection from my Windows Desktop to my Linux server.

In order to run 'rsync' via 'ssh,' I am using a 'TScSSHShell' component.

Here is my code:

iCommand := 'rsync -vrtzn --delete -e ssh @:/data/ /cygdrive/c/data/';
try
ScSSHClient.Connected := True;
try
ScSSHShell.Connected := True;
iResponse := ScSSHShell.ExecuteCommand(iCommand);
ShowMessage(iResponse);
ScSSHShell.Connected := False;
except
on E: Exception do ShowMessage(E.Message);
end;
ScSSHClient.Connected := False;
except
on E: Exception do ShowMessage(E.Message);
end;

If I set the 'NonBlocking' property of my 'TScSSHShell' component to 'False,' I get a blank response.

If I set the 'NonBlocking' property of my 'TScSSHShell' component to 'True,' I do not get response. The program seems to hang.


Does anybody know what I might be doing wrong?[/code]

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 23 Mar 2012 10:29

Rsync uses its own protocol and access to SSH server, therefore you don't need to use SecureBridge components in this case. You can execute rsync program directly.

needhelp12
Posts: 4
Joined: Thu 22 Mar 2012 22:52

Post by needhelp12 » Fri 23 Mar 2012 16:30

I am indeed able to use 'rsync' directly.

However, as far as I understand, 'rsync' needs 'openSSH' to access an SSH server. That is why I was hoping to use SecureBridge with my Delphi application. Furthermore, I appreciate the fact that SecureBridge encrypts the keys.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 05 Apr 2012 16:37

The problem is that Rsync uses its own mechanism to use SSH protocol and we cannot influence it. Unfortunately you cannot use SecureBridge for Rsync.

Post Reply