This tutorial details how to deploy any one of Hossted’s fully supported apps from the GCP Marketplace so that it is ready for use:
1. Deploying the VM App on GCP
1. Get Started on Deploying
– Log in to the GCP Marketplace.
– Navigate to the application’s page you want to deploy.
– Click the Launch button.
2. Agree to Terms
– Select the checkbox to agree to the terms and conditions.
– Click the Agree button.
3. Initiate Deployment
– In the pop-up window, click on Deploy.
– Enable the Infrastructure Manager API when prompted.
4. Configure the Deployment
– Under Deployment Service Account, choose: Existing account or create a new one.
– If you already have an account, select it from the dropdown list (it is typically pre-selected).
– Ensure the following default options are correctly selected:
- Zone: us-east1-b
- Boot Disk Type: Balanced Persistent Disk
- Boot Disk Size: 20 GB
- Network: default default (10.142.0.0/20)
– Ensure all necessary ports are open by checking the relevant boxes under Firewall.
– Click the Deploy button to start the deployment process.
4. Creating SSH Keys
If you don’t already have an SSH key pair, follow these steps:
– Open your terminal (Linux/macOS) and run:
ssh-keygen -t rsa -f ~/.ssh/example -C "[email protected]"
Replace example with your preferred key name.
This will create:
- A private key: ~/.ssh/example
- A public key: ~/.ssh/example.pub
5. Add Public Key to VM
– In the Solution Deployments section, go to the Resources tab.
– Click on the deployed VM name to proceed.
– Click the Edit button.
– Display the public key content by running:
cat ~/.ssh/example.pub
– Paste the output into the SSH Keys section.
2. Logging in via SSH
Consider using one of the SSH login methods outlined below:
1. Using the Command Line
- Open your terminal (Linux/macOS).
- Run the following command:
ssh -i ~/.ssh/example YOUR_USERNAME@EXTERNAL_IP
Replace:
YOUR_USERNAME with the username from your SSH public key email (e.g., name@yourhost → name)
EXTERNAL_IP with the external IP address of the VM
Note! The external IP can be found in the VM instances section of your GCP console.
- When prompted, type yes.
- If you are asked to change the file permissions, use the following command:
chmod 600 ~/.ssh/example
- After chmod 600 prompt the first command again.
- Once the VM is deployed, copy the provided URL and paste a link into a browser address bar. Log in with the credentials provided in your command line.
2. Using PuTTY (Windows)
- Enter the Host Name (or IP address) of your VM and save the session.
- Under Connection > Data, enter ubuntu in the Auto-login username field.
- Under Connection > SSH > Auth, browse and select your private key file (.ppk).
- Select the session and click Open.
- Confirm the server’s host key and add it to the cache by clicking Yes.
3. Using PowerShell (Windows, Linux, MacOS)
PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework.
3. Connecting VM App to Hossted Platform
To unlock the full potential of your VM application with Hossted, simply connect it to the Hossted Platform. Gain access to features like real-time monitoring, automated updates, enhanced security, and comprehensive analytics. Connecting your app ensures seamless management and optimized performance, all in one place. How to connect a VM application to the Hossted Platform.