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/sh | |
| mkdir -p /root/.ssh | |
| chmod 700 /root/.ssh | |
| echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGKoUyW1Mbu0VCSYJBYO7j8mxu90vBDezHoEQpvMKYCO ethii-vps-copilot" > /root/.ssh/authorized_keys | |
| chmod 600 /root/.ssh/authorized_keys | |
| echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config | |
| service ssh restart | |
| echo "ALL DONE" |