From 70faea331f221ca999498459bf354edaee6b45d6 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Wed, 6 Aug 2025 01:06:52 -0400 Subject: [PATCH] add support for connecting via prime-intellect (#3021) --- scripts/cloud-entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cloud-entrypoint.sh b/scripts/cloud-entrypoint.sh index 2d3e29181..a5505e9ad 100755 --- a/scripts/cloud-entrypoint.sh +++ b/scripts/cloud-entrypoint.sh @@ -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