Control your Windows machines through SSH and Paramiko

1. On the Windows machine:

- Install SSHD using Cywin: check

- Assuming that you create a user name genius with administrator permission, including ssh access.

2. On the other machine which installed python and paramiko module:
Before going further, I prefer you read the following article carefully about paramiko and its capability:

Write the client class which will connect to ssh server (the Windows) and execute command from that server for you,

Now run your program in the terminal, for example, query the username genius (if the Windows is also a Domain Controller):

$ python 'dsquery user -samid genius'