What I've tried:
invoke_shell()
thenchannel.send
su
and then sending the password resulted in not being rootinvoke_shell()
and thenchannel.exec_command
resulted in a "Channel Closed" error_transport.open_session()
thenchannel.exec_command
resulted in not being rootinvoke_shell()
then writing to stdin and flushing it resulted in not being root