EC2 Instructions
Instructions for setting up a multi-server on EC2
Skitflow can connect over SSH as root or as a non-root user with passwordless sudo (NOPASSWD in sudoers). AWS's default AMI users — ubuntu on Ubuntu AMIs, ec2-user on Amazon Linux — already have passwordless sudo configured out of the box, so no manual root-login setup is required.
-
Click on launch instance
-
Select the distribution of your choice (we recommend Ubuntu, Debian or Amazon Linux)
-
Choose your instance type and all the other settings you want
-
In the Network settings, click on:
Allow SSH traffic from the internetAllow HTTPS traffic from the internetAllow HTTP traffic from the internet
-
Click on
Launch instance(If you see a warning about adding a new key pair, just skip it) -
Create a server in the Skitflow dashboard in the remote server section
-
Specify the server details:
- IP field: IPv4 public address of the instance
- Username field: the instance's default AMI user (e.g.
ubuntufor Ubuntu,ec2-userfor Amazon Linux) —rootis not needed - SSH key: the private key of the key pair you selected when launching the instance
- Click on
Create Server
-
Click on action
Setup Server, open theMaintenancetab, then clickSetup Serverto run the installation script
If your AMI user doesn't have passwordless sudo configured, either enable it (echo "<user> ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/90-skitflow) or connect as root instead: edit /etc/ssh/sshd_config, set PermitRootLogin yes, restart with sudo systemctl restart sshd, then use root as the Username field when creating the server.
- Connect to the server - you should now be able to setup the server properly and deploy your applications