From 0d82caba3bbd13897ab73bf8814f5f2eeddcacfa Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 13 Sep 2011 19:12:37 +0000 Subject: [PATCH] Fix location of ssh key to install in genesis environment mknb git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/mknb.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index fdc7cc766..c5bb90455 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -95,7 +95,7 @@ sub process_request { } mkpath($tempdir."$sshdir"); chmod(0700,$tempdir."$sshdir"); - copy("$sshdir/id_rsa.pub","$tempdir$sshdir/authorized_keys"); + copy("/root/.ssh/id_rsa.pub","$tempdir$sshdir/authorized_keys"); chmod(0600,"$tempdir$sshdir/authorized_keys"); if (not $invisibletouch and -r "/etc/xcat/hostkeys/ssh_host_key") { copy("/etc/xcat/hostkeys/ssh_host_key","$tempdir/etc/ssh_host_key");