ParallelSSH / parallel-ssh

Asynchronous parallel SSH client library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
1.2k stars 148 forks source link

AttributeError: 'ssh.channel.Channel' object has no attribute 'flush' #364

Open pbrezina opened 1 year ago

pbrezina commented 1 year ago

Trying to call stdin.flush() results with the following exception. This is with libssh pssh.clients.ssh.SSHClient client.

self = <pssh.clients.base.single.Stdin object at 0x7f2c6491ca60>

    def flush(self):
        """Flush pending data written to stdin."""
>       return self._client._eagain(self._channel.flush)
E       AttributeError: 'ssh.channel.Channel' object has no attribute 'flush'

.venv/lib64/python3.10/site-packages/pssh/clients/base/single.py:71: AttributeError