Hello,
to get internet access, a LAN provider requires the user to open a ssh session to remote host with username and password and hold the session open as long as the user wants to have internet access.
I want this to be done by wlan router TL-WR841N with openwrt at startup.
The following script shall be automatically executed at startup
while true
do
DROPBEAR_PASSWORD='PASSWORD' ssh -y USERNAME@remote.host
sleep 5
done
Will this script work on openwrt?
What do I have to do for automatic execution?
Regards,
Erwin
'ssh -y' -> always accept server key if unknown
(Last edited by Erwin on 23 Oct 2017, 13:44)