'Create a pty by sending a pty-req to the server'

def channelOpen(self, ignored):

    term = 'xterm'
    winSize = (25, 80, 0, 0)
    ptyReqData = session.packRequest_pty_req(term, winSize, '')
    self.conn.sendRequest(self, 'pty-req', ptyReqData)
    command = self.conn.sendRequest(self, 'exec', NS(self._command), wantReply=True)
    command.addCallbacks(self._execSuccess, self._execFailure)
