1 # Config for autossh pretuned for anyssh.ru service
3 # http://wiki.etersoft.ru/Autosshd
6 HOST=anyssh.eterhost.ru
8 LOCAL_PORT=22 #port that linstening sshd
9 REMOTE_PORT=10210 #port for ssh comand on HOST $ ssh -p $REMOTE_PORT $REMOTESSH_USER@127.0.0.1
10 REMOTE_KEY=/var/lib/autosshd/.ssh/id_dsa.anyssh.a210 #copy user's private id_dsa from $HOST to _anyssh home dir and check acess rights 600
11 AUTOSSH_PORT=11210 #monitoring local port (port+1 will used too, see man autossh)
17 SSH_OPTIONS="-N -i ${REMOTE_KEY} -R ${REMOTE_PORT}:localhost:${LOCAL_PORT} ${REMOTESSH_USER}@${HOST} -o StrictHostKeychecking=no"
18 AUTOSSH_OPTIONS="-M ${AUTOSSH_PORT} -f ${SSH_OPTIONS}"