add support for connecting via prime-intellect (#3021)

This commit is contained in:
Wing Lian
2025-08-06 01:06:52 -04:00
committed by GitHub
parent 8021c718ce
commit 70faea331f

View File

@@ -44,8 +44,13 @@ add_keys_to_authorized() {
chmod 700 -R ~/.ssh
}
# Set SSH port
if [ ! -z "$SSH_PORT" ]; then
sed -i "s/#Port 22/Port $SSH_PORT/" /etc/ssh/sshd_config
fi
if [[ $PUBLIC_KEY ]]; then
# runpod
# runpod, prime intellect
add_keys_to_authorized "$PUBLIC_KEY"
# Start the SSH service in the background
service ssh start