HarryMuscle
Senior Member
I've got the following SSH line in my services-start script
which unfortunately keeps failing when it's run during the router boot process. However, if I SSH into the main router and manually invoke the script, the above line connects to the node without any issues. The only difference that I can think of between the two methods of how it's invoked is that during the boot process there is no display/terminal associated with the script and when run manually there is a display/terminal associated with it via the SSH session on the main router. However, I'm not sure how to actually get this fixed so that I can connect via SSH from the main router to a node via the services-start script.
Thanks,
Harry
Code:
sleep 300
DROPBEAR_PASSWORD="ssh_password" ssh -y -y -l "ssh_username" "192.168.1.2" "bash -s" < "node-script" &> /dev/null
which unfortunately keeps failing when it's run during the router boot process. However, if I SSH into the main router and manually invoke the script, the above line connects to the node without any issues. The only difference that I can think of between the two methods of how it's invoked is that during the boot process there is no display/terminal associated with the script and when run manually there is a display/terminal associated with it via the SSH session on the main router. However, I'm not sure how to actually get this fixed so that I can connect via SSH from the main router to a node via the services-start script.
Thanks,
Harry