use proper ssh key setup

This commit is contained in:
Alex Polvi 2013-10-14 11:32:58 -07:00
parent 4037db2a2a
commit 522c846bcc

View File

@ -7,9 +7,4 @@ while [ ! -e ${SSH_CONF} ]; do
sleep .1 sleep .1
done done
SSH_HOME="/home/core/.ssh" /bin/grep ssh- ${SSH_CONF} | /usr/bin/update-ssh-keys -u core
SSH_FILE="${SSH_HOME}/authorized_keys"
mkdir -p ${SSH_HOME}
cp ${SSH_CONF} ${SSH_FILE}
chown -R core:core ${SSH_HOME}