c12s-kubespray/ssh-keygen.sh
2016-06-20 09:13:07 +02:00

5 lines
139 B
Bash
Executable file

#!/bin/bash
mkdir -p ssh
if ! [ -f ssh/id_rsa ] ; then
ssh-keygen -N '' -t rsa -f ssh/id_rsa && cp ssh/id_rsa.pub ssh/authorized_keys
fi