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:

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 $*
add next line crontab:

code: select all

crontab -e /usr/local/bin/ssh_tunnel pikachu@tailwhip.slowb.ro 
have persistant ssh tunnel home box! connect via:

code: select all

ssh username@localhost -p 3500
if found useful, or thought of better way, please expand on it!



raspberrypi



Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial