Initial commit

This commit is contained in:
Marco Slater
2018-03-23 17:21:01 +00:00
commit c0d2a0d240
2 changed files with 35 additions and 0 deletions

10
entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f ssh_key ]; then
/ssh-chat -i /ssh_key $@
else
echo "SSH Key not found at /ssh_key. Generating..."
apt-get update > /dev/null && apt-get install openssh-client -y > /dev/null 2>&1
ssh-keygen -t rsa -b 4096 -f /ssh_key -q -N ''
/ssh-chat -i /ssh_key $@
fi