libssh 0.9.2

2019-11-07 Thread Andreas Schneider
Hello, the libssh team released libssh 0.9.2 https://www.libssh.org/2019/11/07/libssh-0-9-2/ Thanks to all people who contribute to libssh! -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
On Thursday, 7 November 2019 16:24:01 CET Karah Sekir wrote: > yes I have seen exec.c, I believe that ssh_channel_exec() without shell > executes exactly 1 command, but what I am trying to achieve is executing > multiple related commands that put the shell into a certain mode and then > read some

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Karah Sekir
yes I have seen exec.c, I believe that ssh_channel_exec() without shell executes exactly 1 command, but what I am trying to achieve is executing multiple related commands that put the shell into a certain mode and then read some data. That's why I request the PTY, then shell and then I would use

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread g4-lisz
On 07.11.19 15:27, Karah Sekir wrote: > Hi Andreas, > > I tried with ssh_channel_exec() (removing the PTY) and I am getting > the same behaviour. > > I should also mention, that I am executing the executable from within > a docker container. The libssh logs show as if everything would be > sent

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
On Thursday, 7 November 2019 15:27:38 CET Karah Sekir wrote: > Hi Andreas, > > I tried with ssh_channel_exec() (removing the PTY) and I am getting the > same behaviour. > > I should also mention, that I am executing the executable from within a > docker container. The libssh logs show as if

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Karah Sekir
Hi Andreas, I tried with ssh_channel_exec() (removing the PTY) and I am getting the same behaviour. I should also mention, that I am executing the executable from within a docker container. The libssh logs show as if everything would be sent from the libssh point of view, but in fact no command

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
On Wednesday, 6 November 2019 17:36:11 CET Karah Sekir wrote: > Hi all, > > I am trying to establish a persistent connection to a SSH server where I > want to periodically send commands via ssh_channel_write. I am using Linux > (5.0.0-32-generic #34~18.04.2-Ubuntu SMP). > > My problem is when I