ssh: make alloc_tty=True default for run_ssh_command()

This commit is contained in:
InsanePrawn 2022-08-16 15:50:14 +02:00
parent 0858a64144
commit 1f15d6705c
2 changed files with 7 additions and 5 deletions

View file

@ -45,6 +45,6 @@ def cmd_forwarding():
click.Abort('Failed set iptables rule')
logging.info("Setting default route on device via ssh")
result = run_ssh_command(cmd=['sudo -S route add default gw 172.16.42.2'])
result = run_ssh_command(cmd=['sudo -S route add default gw 172.16.42.2'], alloc_tty=True)
if result.returncode != 0:
click.Abort('Failed to add gateway over ssh')