callhome.sh 216 B

12345678910111213
  1. #!/bin/sh
  2. USER=
  3. HOST=
  4. while true; do
  5. ssh -NC -o ServerAliveInterval=5 \
  6. -o UserKnownHostsFile=/dev/null \
  7. -o StrictHostKeyChecking=no \
  8. -R '<int IP>:50022:<rem IP>:22' \
  9. $USER@$HOST
  10. sleep 5
  11. done