'Create an interactive session.
This is a simple wrapper for creating a new
:class:`pwnlib.tubes.ssh.ssh_channel` object and calling
:meth:`pwnlib.tubes.ssh.ssh_channel.interactive` on it.'

def interactive(self, shell=None):

    s = self.shell(shell)
    if (self.cwd != '.'):
        cmd = ('cd    ' + sh_string(self.cwd))
        s.sendline(cmd)
    s.interactive()
    s.close()
