Implement SCP server

2019-06-27 Thread Alberto Garcia
Hi, I have a working SSH server created using libssh. I would like to know how can I implement scp capabilities into it so it can be used to copy file from/to it. I've seen documentation about using libssh as a client but nothing regarding a server. Thank you -- Alberto GarcĂ­a Illera GPG Publ

Re: Implement SCP server

2019-06-27 Thread Andreas Schneider
On Friday, June 28, 2019 1:47:29 AM CEST Alberto Garcia wrote: > Hi, > > I have a working SSH server created using libssh. I would like to know how > can I implement scp capabilities into it so it can be used to copy file > from/to it. > > I've seen documentation about using libssh as a client bu

Re: Implement SCP server

2019-06-27 Thread Alberto Garcia
How can I implement that in the server then? Thanks On Thu, Jun 27, 2019 at 10:20 PM Andreas Schneider wrote: > On Friday, June 28, 2019 1:47:29 AM CEST Alberto Garcia wrote: > > Hi, > > > > I have a working SSH server created using libssh. I would like to know > how > > can I implement scp cap

Re: Implement SCP server

2019-06-27 Thread Jakub Jelen
On Fri, 2019-06-28 at 07:20 +0200, Andreas Schneider wrote: > On Friday, June 28, 2019 1:47:29 AM CEST Alberto Garcia wrote: > > Hi, > > > > I have a working SSH server created using libssh. I would like to > > know how > > can I implement scp capabilities into it so it can be used to copy > > fil

Re: Implement SCP server

2019-06-27 Thread Andreas Schneider
On Friday, June 28, 2019 8:12:44 AM CEST Alberto Garcia wrote: > How can I implement that in the server then? We have a sftp server API: https://git.libssh.org/users/asn/libssh.git/commit/?h=stable-0.9 However it is based on messages, but should be based on the callback system. If you could re

Re: Implement SCP server

2019-06-28 Thread Alberto Garcia
I think that's not the link you were trying to paste. Can you provide the correct one please? On Thu, Jun 27, 2019 at 11:30 PM Andreas Schneider wrote: > On Friday, June 28, 2019 8:12:44 AM CEST Alberto Garcia wrote: > > How can I implement that in the server then? > > We have a sftp server API

Re: Implement SCP server

2019-06-28 Thread Andreas Schneider
On Friday, June 28, 2019 9:09:57 AM CEST Alberto Garcia wrote: > I think that's not the link you were trying to paste. > > Can you provide the correct one please? Ups, sorry :-) https://git.libssh.org/projects/libssh.git/tree/include/libssh/sftp.h#n836 -- Andreas Schneider a..