Commit 4b7c310f authored by Marco Marinello's avatar Marco Marinello

Silence ssh-keyscan

Signed-off-by: Marco Marinello's avatarMarco Marinello <mmarinello@sezf.it>
parent fd6fc808
......@@ -41,7 +41,7 @@ else
echo 'command="if [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^scp[[:space:]]-f ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ ^add_client_principal ]] || [[ \"$SSH_ORIGINAL_COMMAND\" =~ rm[[:space:]]/root/ ]]; then $SSH_ORIGINAL_COMMAND; else echo \"Access Denied $SSH_ORIGINAL_COMMAND\"; fi"' $(cat $clonezillaFolder/.ssh/id_rsa.pub) >> /root/.ssh/authorized_keys
fi
ssh-keyscan -H proxy > $clonezillaFolder/.ssh/known_hosts
ssh-keyscan -H proxy > $clonezillaFolder/.ssh/known_hosts 2>/dev/null
chown -R clonezilla. $clonezillaFolder/.ssh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment