Skip to content

Commit

Permalink
add debug prints to vast entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Nov 4, 2023
1 parent b4f5af0 commit 19fed7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vast_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/usr/bin/env bash

echo "Entered bunnybots vast.ai env."

ssh-keygen -A
echo "Generated host keys..."

mkdir /root/.ssh
echo $SSH_PUBLIC_KEY > /root/.ssh/authorized_keys
echo "Authorized public key '${SSH_PUBLIC_KEY}'"

rm -rf /run/nologin

echo "Starting sshd..."
/usr/sbin/sshd -D

0 comments on commit 19fed7a

Please sign in to comment.