2

I want to connect to create a pair of keys, transfer the private key to the remote host, and connect to it using some Python API, so that I can execute a command on the remote host. However, I do not want to require the user to interact with a GUI, so I need to do this all through CLI; the problem is that on Windows I can't find a tool to do this, and plink does not accept keys that are not generated by PuttyGen!

georgebax
  • 115
  • 1
  • 8

1 Answers1

0

Just by doing a rapid search, it seems paramiko module would be your best course for sending commands via SSH. I don't get the key generation part, though.

Nastor
  • 638
  • 4
  • 15