Changeset 596

Show
Ignore:
Timestamp:
05/29/08 10:58:12 (4 months ago)
Author:
free
Message:

Fixed variable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cdd-utils/trunk/lib/server.sh

    r595 r596  
    450450    if nullstr "$key"; then warning "No ssh key given"; return; fi 
    451451 
    452     cfg=/etc/ssh/sshd_config 
    453     if ! exists $cfg; then warning $cfg not found; return; fi 
    454     unc_key "PasswordAuthentication" "#" "$cfg" 
    455     set_key "PasswordAuthentication" " " "no" "$cfg" 
    456  
    457452    if ! exists "/root/.ssh/authorized_keys"; then 
    458453        mkdir -p  /root/.ssh 
     
    460455        cp $key /root/.ssh/authorized_keys 
    461456    fi 
    462 } 
    463  
     457 
     458    cfg=/etc/ssh/sshd_config 
     459    if ! exists $cfg; then warning $cfg not found; return; fi 
     460    unc_key "PasswordAuthentication" "#" "$cfg" 
     461    set_key "PasswordAuthentication" " " "no" "$cfg" 
     462 
     463} 
     464