SFTP in Network coding with gb.net.curl not possible
Posted
#1
(In Topic #225)
Trainee
Is there somewhere an example with SOCKET or similar to connect and read out data from a romete SFTP Server ? - Working on UBUNTU 18.04, Gambas 3.11.
Peter
Posted
Regular

Posted
Guru

Matt and I have taken the code from stevedee's example and altered it a little. It worked for us!
Make sure you change the values of sHost, sRemoteFile, sOutputFile and sPassword
Code (gambas)
- sCopy = "scp"
- sHost = "root@8:8:8:8:" 'Pay attention to the "colon" at the end!
- sRemoteFile = "/home/test.txt"
- sCommand = [sCopy, sHost & sRemoteFile, sOutputFile]
- Print #$SFTPClient, sPassword 'Insert the password
Posted
Trainee
I don't like the title of this post!
But if someone has the way to use ftpclient of gb.net.curl on sftp I'm very interested on it.
Thanks in advance
1 guest and 0 members have just viewed this.


