mirror of
https://github.com/byReqz/ssh-chat-docker.git
synced 2024-11-01 02:53:13 +00:00
10 lines
238 B
Bash
10 lines
238 B
Bash
#!/bin/bash
|
|
|
|
if [ -f ssh_key ]; then
|
|
/ssh-chat -i /ssh_key --admin=/admin_keys $@
|
|
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 $@
|
|
fi
|