'Python script to connect ssh devices without using Paramiko

I am trying to write a simple script to connect to the router via ssh from the Window. I use subprocess and it seems working but do not know how the script passes the password

paramiko always gives me the error

File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\cryptography\x509\general_name.py", line 16, in ipaddress.IPv4Address, AttributeError: module 'ipaddress' has no attribute 'IPv4Address'



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source