Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_ssh_auth.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2161 by niro, Wed May 11 09:11:25 2011 UTC revision 2162 by niro, Wed May 18 14:35:26 2011 UTC
# Line 34  config_ssh_auth() Line 34  config_ssh_auth()
34    
35   if [[ ! -z ${PUB_KEY_SERVER} ]]   if [[ ! -z ${PUB_KEY_SERVER} ]]
36   then   then
37   HOME=/root   HOME="/root"
38   # only if not empty   # only if not empty
39   [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh   [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh
40   CONFIG=$HOME/.ssh/authorized_keys   CONFIG="$HOME/.ssh/authorized_keys"
41   clearconfig   clearconfig
42   addconfig "${PUB_KEY_SERVER}"   addconfig "${PUB_KEY_SERVER}"
43   fi   fi

Legend:
Removed from v.2161  
changed lines
  Added in v.2162