ppcrcd/trunk/net.pkgs

sparky cvs at pld-linux.org
Sun Mar 5 16:09:31 CET 2006


Author: sparky
Date: Sun Mar  5 16:09:28 2006
New Revision: 7097

Modified:
   ppcrcd/trunk/net.pkgs
Log:
- fixed sshd_prepared (key generation)


Modified: ppcrcd/trunk/net.pkgs
==============================================================================
--- ppcrcd/trunk/net.pkgs	(original)
+++ ppcrcd/trunk/net.pkgs	Sun Mar  5 16:09:28 2006
@@ -258,7 +258,14 @@
 	# set root passwort to 'ppcrcd'
 	$(SU) sed 's#root::#root:$$1$$bgmiXGQA$$xK9.Ejwo.Mqkn7pk4s2Y//:#' \
 		-i out/root/stripped/etc/shadow{,-}
-	$(SU) chroot out/root/stripped /etc/rc.d/init.d/sshd init
+	-$(SU) mount -t proc none out/root/stripped/proc
+	-$(SU) mount -o bind /dev out/root/stripped/dev
+	$(SU) chroot out/root/stripped /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
+	$(SU) chroot out/root/stripped /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
+	$(SU) chroot out/root/stripped /usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
+	$(SU) chmod 600 out/root/stripped/etc/ssh/ssh_host_{,rsa_,dsa_}key
+	$(SU) umount out/root/stripped/proc
+	$(SU) umount out/root/stripped/dev
 	touch $@
 
 # vim: syntax=make


More information about the pld-cvs-commit mailing list