mirror of
https://github.com/byReqz/ssh-chat-docker.git
synced 2025-07-16 09:02:41 +00:00
Allow key generation to suceed even if container doesn't have internet connectivity.
This commit is contained in:
@@ -4,7 +4,6 @@ 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
|
||||
|
Reference in New Issue
Block a user