def _do_connection(self, size): self.write("Attaching to %s. Use ^] to force exit.\n" % self.name) phy = self.context.__parent__.__parent__.__parent__.__parent__ ssh_connect_interactive_shell('root', phy.hostname, 22, self.transport, self._set_channel, size, self.command)
def connection_made(self, terminal, size): self.transport = terminal.transport ssh_connect_interactive_shell(self.user, self.host, self.port, self.transport, self.set_channel, size)
def _do_connection(self, size): self.write("Attaching to %s@%s. Use ^] to force exit.\n" % (self.context.user.encode('utf-8'), self.context.hostname.encode('utf-8'))) ssh_connect_interactive_shell(self.context.user, self.context.hostname, self.context.port, self.transport, self._set_channel, size)
def connection_made(self, terminal, size): self.transport = terminal.transport ssh_connect_interactive_shell(self.user, self.host, self.port, self.transport, self.set_channel, size, self.command)