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
This commit is contained in:
parent
e3b1c34d5c
commit
0d82caba3b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user