I have an HTML page that I want one of the buttons to send a ssh script to a mikrotik team, my questions are the following language I use, in case python is how I add that code to that button that I already created or if I have to rewrite my code from the beginning.
Sorry for my lack of corcordance I have a script in python that sends a code by ssh to my mikrotik which gives release to the corresponding interfaces of the following script. I have a HTML page with 3 buttons which I want you to do that ssh function but I can not find a way.
import paramiko
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect('xxxxx', username='xxxx', password='xxxxxxxxxx')
stdin, stdout, stderr = client.exec_command('/ip dhcp-client release [find interface=wlan5]')
print("Cuenta Cerrada")