0

If I SSH to the device directly, I can upgrade using upgrade command and url below. However using paramiko it will not have any results! Any ideas why?

import paramiko

import time

import sys
host= '10.0.0.5'
username="user"
password="pwsd"
session= paramiko.SSHClient()

session.set_missing_host_key_policy(paramiko.AutoAddPolicy())
session.connect(hostname=host,username=username,password=password)

upgradeURLacLR= "https://dl.ui.com/unifi/firmware/U7PG2/4.3.13.11253/BZ.qca956x.v4.3.13.11253.200430.1420.bin"
stdin, stdout, stderr = session.exec_command("upgrade "+str(upgradeURLacLR))
Kenster
  • 20,846
  • 21
  • 74
  • 99
Soilets
  • 21
  • 2
  • Please [edit] your question to describe what happens when you run your script. Do you get any error messages? What do they say? How do you know the command is failing? – Kenster May 29 '22 at 20:17

0 Answers0