Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/functions/config_ssh_auth.sh

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

revision 329 by niro, Thu Apr 14 21:23:36 2005 UTC revision 330 by niro, Wed Sep 7 19:14:24 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_ssh_auth.sh,v 1.2 2005-04-14 21:23:36 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_ssh_auth.sh,v 1.3 2005-09-07 19:14:18 niro Exp $
2  # exchanges the public server and client ssh keys  # exchanges the public server and client ssh keys
3    
4  gen_keys() {  gen_keys() {
# Line 35  config_ssh_auth() { Line 35  config_ssh_auth() {
35    
36   if [ -n "${PUB_KEY_SERVER}" ]   if [ -n "${PUB_KEY_SERVER}" ]
37   then   then
38     HOME=/root
39   # only if not empty   # only if not empty
40   [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh   [ ! -d $HOME/.ssh ] && install -d $HOME/.ssh
41   echo "${PUB_KEY_SERVER}" > $HOME/.ssh/authorized_keys   echo "${PUB_KEY_SERVER}" > $HOME/.ssh/authorized_keys

Legend:
Removed from v.329  
changed lines
  Added in v.330