Files
GPU-Node/ssh/entrypoint.sh
2026-10-07 18:53:14 +04:00

12 lines
275 B
Bash

#!/bin/sh
set -e
cp /mounted-authorized-keys /home/operator/.ssh/authorized_keys
chown -R operator:operator /home/operator/.ssh
chmod 700 /home/operator/.ssh
chmod 600 /home/operator/.ssh/authorized_keys
SSH_PORT="${SSH_PORT:-22}"
exec /usr/sbin/sshd -D -e -p "$SSH_PORT"