Changeset 596
- Timestamp:
- 05/29/08 10:58:12 (4 months ago)
- Files:
-
- 1 modified
-
cdd-utils/trunk/lib/server.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cdd-utils/trunk/lib/server.sh
r595 r596 450 450 if nullstr "$key"; then warning "No ssh key given"; return; fi 451 451 452 cfg=/etc/ssh/sshd_config453 if ! exists $cfg; then warning $cfg not found; return; fi454 unc_key "PasswordAuthentication" "#" "$cfg"455 set_key "PasswordAuthentication" " " "no" "$cfg"456 457 452 if ! exists "/root/.ssh/authorized_keys"; then 458 453 mkdir -p /root/.ssh … … 460 455 cp $key /root/.ssh/authorized_keys 461 456 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
