a188746
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash set -e # Runpod injects the SSH public key via this env var if [ -n "$PUBLIC_KEY" ]; then echo "$PUBLIC_KEY" > /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys fi service ssh start exec "$@"