0

I am trying to initiate an SSH connection from my local machine to a host via pwntools and I keep getting a ValueError raised, even though when I ssh the same host from the terminal I get no errors.

My code is as follows:

from pwn import ssh
username='existing_username'
hostname='X.X.X.X'
password='correct_password'
s1=ssh(user=username,host=hostname, password=password)

The error I get is ValueError: q must be exactly 160, 224, or 256 bits long

Any ideas on how to find the root cause of this and resolve my problem?

George Sp
  • 553
  • 5
  • 20

0 Answers0