Anyone has suggestion about that?

Thanks. I've tried it many times but I cannot find a solution. In terminal
---
sftp -P 8022 -i /Users/sergio/Documents/chiave myu...@myserver.it
---
works nice. I can login and put/get and other more...

In xojo
---
dim f,fkey As FolderItem
dim e as integer
dim d as MyCurl //CURLSMBS
dim b as BinaryStream

f=GetOpenFolderItem("") 'file to upload

if f=nil then Return

fkey=SpecialFolder.Documents.Child("chiave") 'private key

if fkey=nil then
  MsgBox "Key error"
  Return
end if

b=BinaryStream.Open(f)

d=new CurlSperSdI

d.b=b
d.OptionURL="sftp://myserver.it";

d.OptionSSHPrivateKeyfile=fkey.NativePath

d.OptionUsername="myuser"
d.OptionPort=8022
d.OptionUpload=true
d.OptionInFileSize=b.Length

e=d.Perform
---

e returns me 79!

Do you have any suggestion? Any option I forgotten...

Thanks a lot for help.


On Mon, 27 Apr 2020 11:44:05 +0200, Christian Schmitz wrote:
> 
> 
>> Am 27.04.2020 um 11:26 schrieb Sergio Tamborini <ml_ser...@system-i.it>:
>> 
>> So you mean that I have to "install" the key and not be able to use 
>> as a "simple file"? I ask because I need to make "transparent" to my 
>> app users an access in upload to an sftp server... without giving a 
>> password to every user...
> 
> You have to write the key to a file on disk. Can be temporary folder.
> 
> And key file may be encrypted, so you may pass password to the CURL 
> engine to load key.
> 
> Sincerely
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> 
> 
> _______________________________________________
> mbsplugins@monkeybreadsoftware.info mailing list
> %(list_address)s
> https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

------

Sergio Tamborini
Brescia
http://www.system-i.it


"C'è un equivoco di fondo. Si dice che il politico che ha avuto frequentazioni 
mafiose, se non viene giudicato colpevole dalla magistratura, è un uomo onesto. 
No! La magistratura può fare solo accertamenti di carattere giudiziale. Le 
istituzioni hanno il dovere di estromettere gli uomini politici vicini alla 
mafia, per essere oneste e apparire tali"

"There is a basic misunderstanding. It is said that political mafia has had 
acquaintances, if not found guilty by the courts, is an honest man. No. The 
judiciary can only do the findings of a judicial nature. Institutions have a 
duty to oust politicians close to the mafia, to be honest, these look "

Paolo Borsellino

_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to