A Call home function for your rPi - Raspberry Pi Forums
original url: ssh remote host setup via init script , ssh wrapper.
ssh_tunnel wrapper on autossh improvement on original url: add next line crontab: have persistant ssh tunnel home box! connect via: if found useful, or thought of better way, please expand on it!
ssh_tunnel wrapper on autossh improvement on original url:
code: select all
#!/bin/sh # example script start tunnel autossh. # script tunnel 22 local host # 11122 on remote host. id_file=$home/.ssh/id_rsa autossh_gatetime=30 autossh_debug=yes autossh_path=/usr/bin/ssh export autossh_gatetime autossh_debug autossh_path autossh -2 -fn -i $id_file -r 3500:localhost:22 -p12345 $*code: select all
crontab -e /usr/local/bin/ssh_tunnel pikachu@tailwhip.slowb.ro code: select all
ssh username@localhost -p 3500
raspberrypi
Comments
Post a Comment