[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem using libssh function
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: Problem using libssh function
- From: voker57 <voker57@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 31 Dec 2011 16:27:36 +0400
- To: linuxos@xxxxxxxxxxxxxxxx, libssh@xxxxxxxxxx
Did you call scp_new, then scp_init? Can you give a working example of Gambas source calling libssh? On Sat, Dec 31, 2011 at 01:20:40PM +0100, linuxos wrote: > Hi, > > I hope that someone can help me about a little problem using > the 'libssh' in a program. > > My project is a little special and consist to use the library 'libssh' > that you develop in Gambas language on Linux. > > http://gambas.sourceforge.net > > In this language i can use directly all C libraries and take advantage > of all this power inside Gambas language because not all is possible or > not all is furnished. > > So, my problem appear using the following function present in the > 'libssh': > > > LIBSSH_API int ssh_scp_push_directory(ssh_scp scp, const char *dirname, > int mode); > > > Error message: > > Create directory on remote server > - Directory: /tmp/direxample1 > PermsResult = 0000000111101101 Perm: 493 > String:0755 > > Mode: 00000000000000000000000111101101 493 > > [SSH] Can't create remote directory: scp status code 1d not > valid > > > A this point i don't know what to do and what is exactly this error code > '1d'. > > I try many solutions around the permissions declaration and calcul but > nothing change. > In a first time,i don't no if the permission number must be declared in > 4 bytes or 8 bytes and what exactly how to build this parameter. > > I hope that you can help me because your library is very interesting for > me and offer me great possibilities. > > Thank you in advance for your answer. > > Olivier CRUILLES > Email: linuxos@xxxxxxxxxxxxxxxx > > >
Attachment:
signature.asc
Description: Digital signature
Problem using libssh function | linuxos <linuxos@xxxxxxxxxxxxxxxx> |