mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	Correct ssh public key permissions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -68,7 +68,9 @@ sub process_request { | ||||
|       return; | ||||
|    } | ||||
|    mkpath($tempdir."/root/.ssh"); | ||||
|    chmod(0700,$tempdir."/root/.ssh"); | ||||
|    copy("/root/.ssh/id_rsa.pub","$tempdir/root/.ssh/authorized_keys"); | ||||
|    chmod(0600,"$tempdir/root/.ssh/authorized_keys"); | ||||
|    if (-r "$installdir/postscripts/hostkeys/ssh_host_key") { | ||||
|       copy("$installdir/postscripts/hostkeys/ssh_host_key","$tempdir/etc/ssh_host_key"); | ||||
|       copy("$installdir/postscripts/hostkeys/ssh_host_rsa_key","$tempdir/etc/ssh_host_rsa_key"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user