meta-netmodule-distro/recipes-extended/tmate/files/tmate_wrapper.sh

8 lines
154 B
Bash

#!/usr/bin/env sh
if [[ ! -f ~/.ssh/id_rsa ]]; then
echo Generating ssh key, please wait
ssh-keygen -q -f ~/.ssh/id_rsa -N ""
fi
tmate-real "$@"