# This is a combination of 4 commits.
[autosshd_ALT.git] / autosshd / usr / bin / autosshd-ssh
blob8a1f8115f5fa3f292255144ed89ab329b9c8f48d
1 #!/bin/sh
3 help(){
4 echo \
5 "Connect with ssh parameters from config file.
6 Usage: ${0##*/} SERVER
7 SERVER - name of anysshd conf file
8 Example:
9 ${0##*/} anyssh.ru # if exist config /etc/autossh.d/anyssh.ru.conf"
12 if [ -n "$1" ] ; then
13 . /etc/sysconfig/autosshd
14 . /etc/autossh.d/"$1".conf
15 su - -s /bin/sh -c "ssh ${SSH_OPTIONS}" _autossh
16 else
17 help