c12s-kubespray/vagrant-scripts/ssh-keygen.sh

6 lines
139 B
Bash
Raw Normal View History

#!/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