The final step in this tutorial is using your new remote.it EC2 Instance to connect to other AWS Instances or Services. To do this, you have to access your remote.it Instance's Admin Panel. Please note that you will only be able to connect to another AWS Instance if it is in the same Security Group as the remote.it Instance you just set up.
Additionally, in order to edit your AWS AMI's Services you must connect to its Admin Panel. You cannot add Services to the AMI from within the Desktop App.
1. Find your Instance in the remote.it Desktop App and click on it to see its Services. The Admin Panel is installed by default.
2. Connect to the Admin Panel and launch it in your browser.
3. Once the admin panel is launched, sign in with your account. You will be brought to a screen that looks like this:
4. Click the Add Service button (Plus icon) to add a new Service.
For the purpose of this tutorial, I will show you how to add an SSH Service to different EC2 Instance. Please note that if the Instance you wish to create a connection to is not in the same security group as your remote.it Instance, you will not be able to connect. Additionally, keep in mind that this port is not being opened to the internet, it is only accessible from your remote.it account.
5. Find the Private IPv4 address of the Instance you wish to host. Do this by using the EC2 Console, simply by selecting the Instance and viewing its details.
6. Enter that IPv4 address into the Service Host Address field in the remote.it Admin Panel.
7. Select SSH from the Service Type menu, and give the Service a name.
8. For security, connections to Services within AWS are restricted to peer-to-peer. Click the blue Save button to save the Service.
9. The connection to the Instance has now been registered.
10. To access your Instance, go back to the remote.it Desktop App and refresh the remote.it Instance.
11. The Instance you just added will appear as a Service. You no longer need to access the Admin Panel and can disconnect.
12. Click the connect button next to your new connection. A localhost address will appear.
13. Use the localhost address to access your AWS Instance through the command line/terminal.
For SSH access using the localhost address, follow these guidelines:
Once you adjust this command to fit your specific situation, you can control you AWS Instance as usual.
The EC2 Instance you create a connection to does not have to have remote.it installed on it, but may have to have a Security Group defining the open port if the Instance is not on the same VPC.
Now that the Service is added, refresh your Device List. You will notice that the Service has come online, and you can connect to it from anywhere and at anytime.
Additionally, you can share this Service with other remote.it users, instantly grant access to your AWS Instance. This eliminates the need for IP whitelist.
To share access to another user, follow the steps below:
1. Click the Share icon on your remote.it Instance.
2. Enter the email address of the user or users you want to grant access to. Please note that these users must have access to the .pem key the Service was set up with.
3. Check the Service you wish to share and then click the blue Share button.
4. The Service is now shared, and the person can connect to and access the AWS Instance in the same way as detailed above.
Additionally, you can scroll down and see the list of shared users on your Device and Services. A popup will also appear informing you that the share was successful.
You've completed the tutorial! Now you are ready to create an EC2 Instance that allows you to create secure connections to all your other AWS Instances, and use remote.it to selectively share these secure connections with others!