code: def shell(self, term='xterm'):
          
          channel = self._ssh.invoke_shell(term)
          self._bridge(channel)
          channel.close()
docs: Start an interactive shell session
  
          This method invokes a shell on the remote SSH server and proxies
          traffic to/from both peers.
  
          You must connect to a SSH server using ssh_connect()
          prior to starting the session.