mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 19:42:15 +02:00
use proper ssh key setup
This commit is contained in:
parent
4037db2a2a
commit
522c846bcc
@ -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}
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user