adding motd support

This commit is contained in:
Nils 2020-09-21 11:08:10 +00:00 committed by GitHub
parent 499000e3f9
commit 02e897acdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
if [ -f ssh_key ]; then
/ssh-chat -i /ssh_key --admin=/admin_keys $@
/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 $@
/ssh-chat -i /ssh_key --admin /admin_keys --motd=/motd $@
fi