Magellan Linux

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

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

revision 389 by niro, Wed Jun 4 17:13:19 2008 UTC revision 390 by niro, Wed Jun 4 17:19:37 2008 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_ssh_auth.sh,v 1.2 2008-06-04 17:13:19 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_ssh_auth.sh,v 1.3 2008-06-04 17:19:37 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 52  config_ssh_auth() Line 52  config_ssh_auth()
52   mysqldo "update ssh_auth_clients set public_key='$(< /etc/dropbear/dropbear_rsa_host_key.pub)' where serial=${ALX_SERIAL};"   mysqldo "update ssh_auth_clients set public_key='$(< /etc/dropbear/dropbear_rsa_host_key.pub)' where serial=${ALX_SERIAL};"
53   else   else
54   # run an insert   # run an insert
55   mysqldo "insert into ssh_auth_clients(serial,public_key) values('${ALX_SERIAL}','$(< /etc/ssh/ssh_host_rsa_key.pub)')"   mysqldo "insert into ssh_auth_clients(serial,public_key) values('${ALX_SERIAL}','$(< /etc/dropbear/dropbear_rsa_host_key.pub)')"
56   fi   fi
57  }  }

Legend:
Removed from v.389  
changed lines
  Added in v.390