Use of sFtp protocol

270 views
Skip to first unread message

José Luis Capel

unread,
Aug 16, 2015, 3:27:05 PM8/16/15
to harbou...@googlegroups.com
Hi all,

Is there any way to use sFtp protocol when accessing an ftp?  (I mean with
harbour)....

Thanks,
José Luis Capel

elch

unread,
Aug 19, 2015, 4:07:10 AM8/19/15
to Harbour Users

Hi José,



Is there any way to use sFtp protocol when accessing an ftp?  (I mean with harbour)....
 

in the hbtip contrib i recently saw something about FTPS, but not about very different SFTP.


Harbour contrib hbcurl ( for libcurl ) should *theoretical* be able to do such, as libcurl claims to be able to [ pure C example ]:

http://curl.haxx.se/libcurl/c/sftpget.html

But .... perhaps not as easy as it looks at first eyelook.

The binary distributed 'libcurl' was in my case created without SFTP support.

A rebuild depending on used OS is a bit more complex, as libcurl depends on other libraries.

I have not further tested that !, maybe you like to work that out for us all ?


--

What's about executing a nice command line tool ?, Harbour is famous and fast in doing so,

e.g. with hb_processOpen()/ hb_processRun( "execuatable /params ...",,@cOut )

for afterwards analyse of the stdout-put.


In Linux, package "openssh-client" brings with a sweet: 'sftp' executable:

http://www.computerhope.com/unix/sftp.htm

for other OS you may ask a search machine ..


On success, please report for others


best regards

Rolf

José Luis Capel

unread,
Aug 24, 2015, 10:01:39 AM8/24/15
to Harbour Users
Hi Rolf,

Many thanks for your answer.

At his moment I'm using an external utility called 'pscp.exe' by using command line.

I'll investigate CURL to see its capabilities.

Regards,
José Luis Capel

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages