This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # OneClickMiner pay-server SSH bootstrap. | |
| # Adds the claude SSH key, installs+starts openssh-server, opens firewall, verifies listening. | |
| set -e | |
| KEY='ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdro0pDGdUfCU9m9jdXkOmaH4PptdrEVXayh20gBr2u claude-oneclickminer-20260525' | |
| echo "[1/4] Adding key to /root/.ssh/authorized_keys..." | |
| mkdir -p /root/.ssh | |
| chmod 700 /root/.ssh |