remotelogin/connections/ssh/__init__.py
def _paramiko_exec_command_with_channel(self, command, bufsize=-1, timeout=None, get_pty=False, **kwargs):
        """ copied from paramiko.client but returning the channel so we can reuse it"""
        chan = self.ssh_transport.open_session(**self._pop_window_packet_size(kwargs))
        if get_pty:
            chan.get_pty()
        chan.settimeout(timeout)
        chan.exec_command(command)
        stdin = chan.makefile('wb', bufsize)
        stdout = chan.makefile('r', bufsize)
        stderr = chan.makefile_stderr('r', bufsize)
        return stdin, stdout, stderr, chan
 copied from paramiko.client but returning the channel so we can reuse it
copied from paramiko.client but returning the channel so we can reuse it
copied from paramiko . client but returning the channel so we can reuse it
def _paramiko_exec_command_with_channel(self, command, bufsize=-1, timeout=None, get_pty=False, **kwargs):
        chan = self.ssh_transport.open_session(**self._pop_window_packet_size(kwargs))
        if get_pty:
            chan.get_pty()
        chan.settimeout(timeout)
        chan.exec_command(command)
        stdin = chan.makefile('wb', bufsize)
        stdout = chan.makefile('r', bufsize)
        stderr = chan.makefile_stderr('r', bufsize)
        return stdin, stdout, stderr, chan
def _paramiko_exec_command_with_channel ( self , command , bufsize = - 1 , timeout = None , get_pty = False , ** kwargs ) : chan = self . ssh_transport . open_session ( ** self . _pop_window_packet_size ( kwargs ) ) if get_pty : chan . get_pty ( ) chan . settimeout ( timeout ) chan . exec_command ( command ) stdin = chan . makefile ( 'wb' , bufsize ) stdout = chan . makefile ( 'r' , bufsize ) stderr = chan . makefile_stderr ( 'r' , bufsize ) return stdin , stdout , stderr , chan
copied from paramiko.client but returning the channel so we can reuse it
copied from paramiko . client but returning the channel so we can reuse it
""" copied from paramiko.client but returning the channel so we can reuse it"""
self
command
bufsize
timeout
get_pty