mirror of
https://github.com/byReqz/ssh-chat-docker.git
synced 2024-12-04 23:31:50 +00:00
adding motd support
This commit is contained in:
parent
499000e3f9
commit
02e897acdf
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -f ssh_key ]; then
|
if [ -f ssh_key ]; then
|
||||||
/ssh-chat -i /ssh_key --admin=/admin_keys $@
|
/ssh-chat -i /ssh_key --admin=/admin_keys --motd=/motd $@
|
||||||
else
|
else
|
||||||
echo "SSH Key not found at /ssh_key. Generating..."
|
echo "SSH Key not found at /ssh_key. Generating..."
|
||||||
ssh-keygen -t rsa -b 4096 -f /ssh_key -q -N ''
|
ssh-keygen -t rsa -b 4096 -f /ssh_key -q -N ''
|
||||||
/ssh-chat -i /ssh_key --admin /admin_keys $@
|
/ssh-chat -i /ssh_key --admin /admin_keys --motd=/motd $@
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user