ssh-chat-docker/entrypoint.sh
2020-09-21 11:08:10 +00:00

10 lines
264 B
Bash

#!/bin/bash
if [ -f ssh_key ]; then
/ssh-chat -i /ssh_key --admin=/admin_keys --motd=/motd $@
else
echo "SSH Key not found at /ssh_key. Generating..."
ssh-keygen -t rsa -b 4096 -f /ssh_key -q -N ''
/ssh-chat -i /ssh_key --admin /admin_keys --motd=/motd $@
fi