Re: Keep alive the session after remote execution of the commands

2022-07-01 Thread Jakub Jelen
On 6/30/22 10:42, Javad Rahimi wrote: Hello, We have developed a simple ssh client application based on this  example (libssh: Chapter 4) to run a command remotely and return the results. However, the ssh server disconnects the

Re: Keep alive the session after remote execution of the commands

2022-07-01 Thread Javad Rahimi
Hi Andreas, On Fri, Jul 1, 2022 at 11:51 AM Javad Rahimi wrote: > Hi Andreas, > Thank you very much > I will test it . > > Best regards, > Javad > > On Fri, Jul 1, 2022, 11:20 Andreas Schneider wrote: > >> On Thursday, June 30, 2022 10:42:59 AM CEST Javad Rahimi wrote: >> > Hello, >> >> Hi, >>

Re: Keep alive the session after remote execution of the commands

2022-07-01 Thread Javad Rahimi
Hi Andreas, Thank you very much I will test it . Best regards, Javad On Fri, Jul 1, 2022, 11:20 Andreas Schneider wrote: > On Thursday, June 30, 2022 10:42:59 AM CEST Javad Rahimi wrote: > > Hello, > > Hi, > > > We have developed a simple ssh client application based on this > >

Re: Keep alive the session after remote execution of the commands

2022-07-01 Thread Andreas Schneider
On Thursday, June 30, 2022 10:42:59 AM CEST Javad Rahimi wrote: > Hello, Hi, > We have developed a simple ssh client application based on this > example (libssh: > Chapter 4) to run a command remotely and return the results. However, the

Re: Keep alive the session after remote execution of the commands

2022-06-30 Thread Jakub Jelen
On 6/30/22 13:38, Javad Rahimi wrote: Hi Antenore, Thank you very much. I have attached my demo code. Its always helpful to see a libssh client and server debug logs to get a grasp of what is going on there, where, why and what is actually failing in the code. Regards, -- Jakub Jelen

Re: Keep alive the session after remote execution of the commands

2022-06-30 Thread Javad Rahimi
Hi Antenore, Thank you very much. I have attached my demo code. Best Regards, Javad On Thu, Jun 30, 2022 at 2:40 PM Antenore Gatta wrote: > Hello! > > I'm just a follower trying to help ;-) > > On Thu, 2022-06-30 at 13:12 +0430, Javad Rahimi wrote: > > Hello, > > > > We have developed a

Re: Keep alive the session after remote execution of the commands

2022-06-30 Thread Antenore Gatta
Hello! I'm just a follower trying to help ;-) On Thu, 2022-06-30 at 13:12 +0430, Javad Rahimi wrote: > Hello, > > We have developed a simple ssh client application based on this example > (libssh: Chapter 4) to run a command remotely and return the results. There's much more than that to do

Keep alive the session after remote execution of the commands

2022-06-30 Thread Javad Rahimi
Hello, We have developed a simple ssh client application based on this example (libssh: Chapter 4) to run a command remotely and return the results. However, the ssh server disconnects the connection after executing the command and