EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sample SFTP implementation using TElSimpleSFTPClient

Posted: 11/29/2013 03:25:40
by  Ashvini Joshi
I am trying to implement a simple SFTP Client to make a connection to a remote
server and download the file from a that server.
I used below classes so far to do this:-

import org.freepascal.rtl.TObject;

import SecureBlackbox.Base.SBUtils;
import SecureBlackbox.Base.TSBFileTransferMode;
import SecureBlackbox.SFTPClient.TElSimpleSFTPClient;
import SecureBlackbox.SSHCommon.TElSSHKey;
import SecureBlackbox.SSHCommon.TSSHKeyValidateEvent;

I am able to open the connection(after setting license key)and also list the remote directory contents, but while doing the
transfer(download) I get an error.

Here is my code to do the same:-
ssh.DownloadFile(parRemoteName, parLocalName, TSBFileTransferMode.ftmOverwrite);

and here is the error, I get:-
Server key received
Connection alive ? true
Remote Path = /home/oracle/testEldos/test.txt
Local Path = /home/oracle/testEldos
Exception in thread "main" SecureBlackbox.Base.EElVFSAdapterError: File system
operation failed with error. Requested path is /home/oracle/testEldos (error
code is 103429)

Can someone pls help me undersdtand whats the issue here. i have given full
permissions to test.txt file. If possible pls send me a sample implementation with the local and remote filepath example values.
Posted: 11/29/2013 03:30:09
by Eugene Mayevski (Team)

Your question has been answered in helpdesk. Don't repost questions to both forum and helpdesk, please.

Sincerely yours
Eugene Mayevski
Posted: 11/29/2013 03:32:31
by Vsevolod Ievgiienko (Team)


Error code 103429 stands for SB_VFS_ERROR_ACCESS_DENIED. As I already answered you in the Helpdesk, you should set local path to "/home/oracle/testEldos/test.txt" in your case.



Topic viewed 2432 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!