For me following code in post-mount works fine:
Code:
while :
do
ssh -i /usr/local/root/.ssh/identity -R 2222:localhost:22 remote_user@remote_host.in.the.net ping -i 300 localhost
echo "SSH exited" >> /tmp/syslog.log
sleep 30
done
given that asus's public key has been properly added to ~remote_host/.ssh/authorized_keys.
After that if I want to access asus from remote host, I login there, and use
Code:
ssh -p 2222 admin@localhost
Ping -300 .. is necessary to prevent tunneling ssh from being murdered for inactivity.
SO it goes,
Roofcat