This repository has been archived on 2022-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
docker-wg-cgnat/scripts/start-server.sh

20 lines
525 B
Bash

#!/bin/bash
mkdir -p /root/ssh
if [ ! -f /root/ssh/ssh_host_rsa_key ]; then
echo "---No Host RSA Key found, generating!---"
ssh-keygen -f /root/ssh/ssh_host_rsa_key -t rsa -b ${RSA_BITS} -N ""
else
echo "---Host RSA Key found!---"
fi
if [ ! -f /root/.firstrun ]; then
echo
echo "-------YOUR RSA PUBLIC KEY - YOUR RSA PUBLIC KEY --------"
echo
echo "$(cat /root/ssh/ssh_host_rsa_key.pub)"
echo
echo "-------YOUR RSA PUBLIC KEY - YOUR RSA PUBLIC KEY --------"
echo
touch /root/.firstrun
fi
sleep infinity