@SpiderKenny You can use sshpass, here's my rough notes on how to use it to deploy firmware using scp and ssh with sshpass:
// using sshpass to deploy new firmware
ssh-keygen -f "/home/chris/.ssh/known_hosts" -R "fe80::42a3:6bff:fec3:cb5b%enp0s31f6"
sshpass -ponioneer scp -6 -o StrictHostKeyChecking=no ~/source/bin/targets/ramips/mt76x8/openwrt-ramips-mt76x8-omega2p-squashfs-sysupgrade.bin root@[fe80::42a3:6bff:fec3:cb5b%enp0s31f6]:/tmp
sshpass -ponioneer ssh -6 -o StrictHostKeyChecking=no root@fe80::42a3:6bff:fec3:cb5b%enp0s31f6 sysupgrade -n /tmp/openwrt-ramips-mt76x8-omega2p-squashfs-sysupgrade.bin
fe80::42a3:6bff:fec3:cb5b
@SpiderKenny Yes fastgpio is better but I showed code that uses the file system instead as I'm not sure of your level of experience and this method is easy to implement.
@Alfonso-Blanco sh needs to be running indefinitely in the background. The command you need is probably something like sh > /dev/tty0 &
More info on running commands in the background here.
I recommend playing around with this just on the command line to get it working. Then once you've figured it out, you can add it to the rc.local so it runs at boot
@thomas166 glad you were able to resolve it, thanks for sharing the solution!
Is there anything different (OS, hardware, etc) about the new mac that works?
@Jackdaw - apologize for the really really late reply; I'm reviewing my own posts as found myself in the same situation again - that of changing the default ssh port.
And I'm sure you're correct; however, for an ordinary user, just reading the official documentation about hot to connect via ssh, dropping 2 more lines to cover that . . . I'm just saying . . . could save a lot of precious time; I'll try asking chatGPT also to see if it can figure it out . . .
@Stephen-Tunney please make a new topic if you're still experiencing this issue or have more to say about it.
We'd like to avoid resurrecting very old threads.