Make template from conf
[autosshd_ALT.git] / autosshd / etc / autossh.d / anyssh.ru.conf
blob3ef130fea1ed083284352a601cd07cdd71c5e0e9
1 # Config for autossh pretuned for anyssh.ru service
2 # see man autossh
3 # http://wiki.etersoft.ru/Autosshd
5 # connection params
6 HOST=anyssh.eterhost.ru
7 REMOTESSH_USER=a210 
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)
13 #USER=_autossh
14 # TODO: AUTOSTART=yes
15 MANUAL=no
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}"