From ed1927e481114281c744e1f3ba52f55716f7ecb4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 30 May 2011 21:53:55 +0200 Subject: [PATCH] openssh: chmod 600 all keys Signed-off-by: Stephan Raue --- packages/network/openssh/init.d/51_sshd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/network/openssh/init.d/51_sshd b/packages/network/openssh/init.d/51_sshd index d00f8450d7..36533c5e91 100644 --- a/packages/network/openssh/init.d/51_sshd +++ b/packages/network/openssh/init.d/51_sshd @@ -36,6 +36,7 @@ mkdir -p /storage/.cache/ssh $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null + chmod 600 $RSA1_KEY fi # Check for the SSH2 RSA key @@ -44,6 +45,7 @@ mkdir -p /storage/.cache/ssh $KEYGEN -q -t rsa -f $RSA2_KEY -C '' -N '' >&/dev/null + chmod 600 $RSA2_KEY fi # Check for the SSH2 DSA key @@ -52,6 +54,7 @@ mkdir -p /storage/.cache/ssh $KEYGEN -q -t dsa -f $DSA2_KEY -C '' -N '' >&/dev/null + chmod 600 $DSA2_KEY fi # Check for predifined known hosts file