Alert: American Cloud doesn't allow 'root' as default. Only users that have a full understanding of their environments and the security implications should use this guide.
- Navigate to https://app.americancloud.com/login
Create an Instance with Start Up Script
1.) In the left navigation pane select "Cloud Compute"
2.) Select "CREATE AN INSTANCE"
3.) Select the project to build in and select "Proceed"
4.) Select between "US-West-0" and "US-West-1"
If wishing to build on our premium stack select "US-West-0"
5.) Select between Standard or Premium in "US-West-0" and Standard in "US-West-0"
6.) Select the desired OS/Marketplace App.
7.) Provision your VM with our custom or default options.
8.) Select "Add a new Startup Script"
9.) Add this startup script to the block. Ensure to replace "mypubkey" with your actual pubkey leaving the quotations in place.
#!/bin/bash
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
SSH_KEY_CONTENT="mypubkey"
echo "$SSH_KEY_CONTENT" >> /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
chown root:root /root/.ssh/authorized_keys
systemctl restart sshd
echo "SSH configuration for root updated. Root login now permitted with specified key."
10.) Select "Add startup script"
11.) Give the instance a customized hostname and label.
12.) Select "Deploy Now"
Confirm Root SSH is enabled
SSH using root user to confirm access ssh root@'publicip'