'shell(shell = None, tty = True, timeout = Timeout.default) -> ssh_channel
Open a new channel with a shell inside.
Arguments:
shell(str): Path to the shell program to run.
If :const:`None`, uses the default shell for the logged in user.
tty(bool): If :const:`True`, then a TTY is requested on the remote server.
Returns:
Return a :class:`pwnlib.tubes.ssh.ssh_channel` object.
Examples:
>>> s =  ssh(host=\'example.pwnme\',
...         user=\'travis\',
...         password=\'demopass\')
>>> sh = s.shell(\'/bin/sh\')
>>> sh.sendline(\'echo Hello; exit\')
>>> print \'Hello\' in sh.recvall()
True'

def shell(self, shell=None, tty=True, timeout=Timeout.default):

    return self.run(shell, tty, timeout=timeout)
