How to get root privilege in remote host using python paramiko

1.1k Views Asked by At

I am working on Python paramiko. As we know in paramiko we can login to a remote host using the credentials

ssh.connect(hostname,username=username,password=password)

after that if I should get the root privilege by running some command privileged-mode enable this will prompt us for a password.

Here I am not able to get the root privileges to the device and I am facing problem in sending the password.

Can anybody help me!

0

There are 0 best solutions below