PageSourceSearch

https://documentation.ubos.tech/assets/js/b135d96c.800fc1ff.js

js ubos.tech collected 2026-10-03 23:31:21 UTC 22,953 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5045],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>k});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var i=a.createContext({}),s=function(e){var t=a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=s(e.components);return a.createElement(i.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),d=s(n),k=r,m=d["".concat(i,".").concat(k)]||d[k]||c[k]||l;return n?a.createElement(m,o(o({ref:t},u),{},{components:n})):a.createElement(m,o({ref:t},u))}));function k(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=d;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p.mdxType="string"==typeof e?e:r,o[1]=p;for(var s=2;s<l;s++)o[s]=n[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},1067:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>o,default:()=>c,frontMatter:()=>l,metadata:()=>p,toc:()=>s});var a=n(7462),r=(n(7294),n(3905));const l={},o="How to Create and Connect a VPS on GCP to UBOS",p={unversionedId:"vps/gcp",id:"vps/gcp",title:"How to Create and Connect a VPS on GCP to UBOS",description:"This guide will walk you through the process of connecting your Google Cloud Platform (GCP) Virtual Private Server (VPS) to the UBOS platform. Follow the simple steps below, each with images and clear instructions.",source:"@site/docs/vps/gcp.md",sourceDirName:"vps",slug:"/vps/gcp",permalink:"/docs/vps/gcp",draft:!1,editUrl:"https://gitlab.com/ubos-public/documentations/-/tree/main/website/docs/vps/gcp.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"How to Create and Connect a VPS on AWS to UBOS",permalink:"/docs/vps/aws"},next:{title:"Attach Your Workspace",permalink:"/docs/vps/workspace"}},i={},s=[{value:"Prerequisites for Connecting Your GCP VPS",id:"prerequisites-for-connecting-your-gcp-vps",level:2},{value:"Create Firewall Policies on GCP",id:"create-firewall-policies-on-gcp",level:2},{value:"Step 1: Access the Google Cloud Console",id:"step-1-access-the-google-cloud-console",level:3},{value:"Step 2: Navigate to Firewall Rules",id:"step-2-navigate-to-firewall-rules",level:3},{value:"Step 3: Create a New Firewall Rule",id:"step-3-create-a-new-firewall-rule",level:3},{value:"Step 4: Configure the Firewall Rule",id:"step-4-configure-the-firewall-rule",level:3},{value:"Step 5: View the Created Rule",id:"step-5-view-the-created-rule",level:3},{value:"Create a VPS in GCP",id:"create-a-vps-in-gcp",level:2},{value:"Step 1: Access the Google Cloud Console",id:"step-1-access-the-google-cloud-console-1",level:3},{value:"Step 2: Create a New VM",id:"step-2-create-a-new-vm",level:3},{value:"Step 3: Configure the VM",id:"step-3-configure-the-vm",level:3},{value:"Step 4: Create the VM",id:"step-4-create-the-vm",level:3}
1,{value:"Step 5: Generate Your SSH Key",id:"step-5-generate-your-ssh-key",level:3},{value:"Step 6: Add an SSH Key",id:"step-6-add-an-ssh-key",level:3},{value:"Connect Your GCP VM to UBOS",id:"connect-your-gcp-vm-to-ubos",level:2},{value:"Step 1: Gather Connection Details",id:"step-1-gather-connection-details",level:3},{value:"Step 2: Input the Information in UBOS",id:"step-2-input-the-information-in-ubos",level:3},{value:"Step 3: Finalize the Connection",id:"step-3-finalize-the-connection",level:3}],u={toc:s};function c(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"how-to-create-and-connect-a-vps-on-gcp-to-ubos"},"How to Create and Connect a VPS on GCP to UBOS"),(0,r.kt)("p",null,"This guide will walk you through the process of connecting your Google Cloud Platform (GCP) Virtual Private Server (VPS) to the UBOS platform. Follow the simple steps below, each with images and clear instructions."),(0,r.kt)("h2",{id:"prerequisites-for-connecting-your-gcp-vps"},"Prerequisites for Connecting Your GCP VPS"),(0,r.kt)("p",null,"Make sure the following requirements are met before starting:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Requirement")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Details")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Public IP Address")),(0,r.kt)("td",{parentName:"tr",align:null},"Ensure your VM has a public IP address for establishing the connection.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"SSH Username")),(0,r.kt)("td",{parentName:"tr",align:null},"The username with administrative privileges for SSH access (typically 'root' or admin user).")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Private Key")),(0,r.kt)("td",{parentName:"tr",align:null},"The private key used for authenticating the SSH connection.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Minimum Server Specs")),(0,r.kt)("td",{parentName:"tr",align:null},"Your VM must have at least 1 CPU and 2 GB of RAM.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Open Port")),(0,r.kt)("td",{parentName:"tr",align:null},"Ensure that ",(0,r.kt)("strong",{parentName:"td"},"port 6443")," is open for external access, as it is required for the connection.")))),(0,r.kt)("hr",null),(0,r.kt)("h2",{id:"create-firewall-policies-on-gcp"},"Create Firewall Policies on GCP"),(0,r.kt)("p",null,"Before creating your VM, you need to configure the firewall to allow the necessary traffic."),(0,r.kt)("h3",{id:"step-1-access-the-google-cloud-console"},"Step 1: Access the Google Cloud Console"),(0,r.kt)("p",null,"Go to the ",(0,r.kt)("strong",{parentName:"p"},(0,r.kt)("a",{parentName:"strong",href:"https://console.cloud.google.com/"},"Google Cloud Console")),"."),(0,r.kt)("h3",{id:"step-2-navigate-to-firewall-rules"},"Step 2: Navigate to Firewall Rules"),(0,r.kt)("p",null,"In the left menu, select ",(0,r.kt)("strong",{parentName:"p"},"VPC Network")," > ",(0,r.kt)("strong",{parentName:"p"},"Firewall"),"."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/gcpfierwall1.png",alt:"Firewall Menu"})),(0,r.kt)("h3",{id:"step-3-create-a-new-firewall-rule"},"Step 3: Create a New Firewall Rule"),(0,r.kt)("p",null,"Click on the ",(0,r.kt)("strong",{parentName:"p"},"Create Firewall Rule")," button."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/rule1.png",alt:"Create Firewall Rule"})),(0,r.kt)("h3",{id:"step-4-configure-the-firewall-rule"},"Step 4: Configure the Firewall Rule"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"Name"),': Set a rule name (e.g., "kubernetes").'),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"Target Tags"),': Set target tags (e.g., "kubernetes").'),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"Source"),": Set the source to ",(0,r.kt)("strong",{parentName:"li"},"0.0.0.0/0")," (for external access)."),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"Protocols and Ports"),": Either allow all protocols or specify ",(0,r.kt)("strong",{parentName:"li"},"TCP")," with port ",(0,r.kt)("strong",{parentName:"li"},"6443"),".")),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/rule5.png",alt:"Configure Rule"})),(0,r.kt)("h3",{id:"step-5-view-the-created-rule"},"Step 5: View the Created Rule"),(0,r.kt)("p",null,"Once created, you will see your new firewall rule listed under the firewall policies."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/rule6.png",alt:"Firewall Rule Created"})),(0,r.kt)("p",null,"Now, you can proceed to create your VM in GCP."),(0,r.kt)("hr",null),(0,r.kt)("h2",{id:"create-a-vps-in-gcp"},"Create a VPS in GCP"),(0,r.kt)("h3",{id:"step-1-access-the-google-cloud-console-1"},"Step 1: Access the Google Cloud Console"),(0,r.kt)("p",null,"Go to the ",(0,r.kt)("strong",{parentName:"p"},(0,r.kt)("a",{parentName:"strong",href:"https://console.cloud.google.com/"},"Google Cloud Console")),"."),(0,r.kt)("h3",{id:"step-2-create-a-new-vm"},"Step 2: Create a New VM"),(0,r.kt)("p",null,"Click on the ",(0,r.kt)("strong",{parentName:"p"},"Create a VM")," button."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/gcp1.png",alt:"Create a VM"})),(0,r.kt)("h3",{id:"step-3-configure-the-vm"},"Step 3: Configure the VM"),(0,r.kt)("p",null,"Set the following configurations:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Field")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Details")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Region and Zone")),(0,r.kt)("td",{parentName:"tr",align:null},"Choose your preferred region and zone for your VM.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Machine Type")),(0,r.kt)("td",{parentName:"tr",align:null},"Select a machine with at least ",(0,r.kt)("strong",{parentName:"td"},"1 CPU")," and ",(0,r.kt)("strong",{parentName:"td"},"2 GB of RAM"),".")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"OS and Storage")),(0,r.kt)("td",{parentName:"tr",align:null},"Set the operating system to ",(0,r.kt)("strong",{parentName:"td"},"Ubuntu")," and the storage to at least ",(0,r.kt)("strong",{parentName:"td"},"30 GB"),".")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Network Tags")),(0,r.kt)("td",{parentName:"tr",align:null},'Add the network tag you created earlier (e.g., "kubernetes").')))),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM1.png",alt:"
1VM Configuration"}),"\n",(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM2.png",alt:"VM Configuration"})),(0,r.kt)("h3",{id:"step-4-create-the-vm"},"Step 4: Create the VM"),(0,r.kt)("p",null,"Once you've configured everything, click ",(0,r.kt)("strong",{parentName:"p"},"Create")," to launch the VM."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM5.png",alt:"Create VM"})),(0,r.kt)("h3",{id:"step-5-generate-your-ssh-key"},"Step 5: Generate Your SSH Key"),(0,r.kt)("p",null,"If you don\u2019t already have an SSH key, you can create one using the following command:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"ssh-keygen -t rsa -f ~/.ssh/KEY_FILENAME -C USERNAME\n")),(0,r.kt)("p",null,"After generating the SSH key, use the following command to display the public key:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"cat ~/.ssh/KEY_FILENAME.pub\n")),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/sshpub.png",alt:null})),(0,r.kt)("p",null,"This will output the public key to your terminal. Highlight and copy the content of the public key (it should start with ssh-rsa or ssh-ed25519)."),(0,r.kt)("h3",{id:"step-6-add-an-ssh-key"},"Step 6: Add an SSH Key"),(0,r.kt)("p",null,"To access the VM securely, you need to add your SSH key."),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Open the instance details by clicking on the VM in the GCP dashboard."),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM6.png",alt:"Instance Details"}))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click ",(0,r.kt)("strong",{parentName:"p"},"Edit")," to add your SSH key."),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM7.png",alt:"Add SSH Key"}))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Scroll to the ",(0,r.kt)("strong",{parentName:"p"},"Security and Access")," section and click ",(0,r.kt)("strong",{parentName:"p"},"Add Item")," to add the SSH key."),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/VM8.png",alt:"Add SSH Key"})))),(0,r.kt)("h2",{id:"connect-your-gcp-vm-to-ubos"},"Connect Your GCP VM to UBOS"),(0,r.kt)("p",null,"Now that your GCP VM is configured and the SSH key is added, follow these final steps to connect it to the UBOS platform."),(0,r.kt)("h3",{id:"step-1-gather-connection-details"},"Step 1: Gather Connection Details"),(0,r.kt)("p",null,"To connect your GCP VM to UBOS, you will need the following information:"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"Public IP Address"),": The external IP address of your VM, which you can find on the instances page. Refer back to ",(0,r.kt)("a",{parentName:"p",href:"#step-4-create-the-vm"},"Step 4: Create the VM")," to locate this information.\n",(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/instance.png",alt:"Instances Page"}))),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"SSH Username"),": This is the username you used when generating the SSH key. You can review how this was set in ",(0,r.kt)("a",{parentName:"p",href:"#step-5-generate-your-ssh-key"},"Step 5: Generate Your SSH Key"),"."))),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"SSH Private Key"),"[]")),(0,r.kt)("h3",{id:"step-2-input-the-information-in-ubos"},"Step 2: Input the Information in UBOS"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"Navigate to User Settings"),":",(0,r.kt)("br",{parentName:"p"}),"\n","To begin, go to the ",(0,r.kt)("strong",{parentName:"p"},"User Settings"),' tab by clicking on the "User Settings" icon in the lower left corner of the workspace screen.'),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/09/vps1.png",alt:"User Settings"}))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},'Open "Your Servers" Page'),":",(0,r.kt)("br",{parentName:"p"}),"\n","Once you're in the ",(0,r.kt)("strong",{parentName:"p"},"User Settings")," tab, click on the ",(0,r.kt)("strong",{parentName:"p"},"Your Servers")," option in the menu."),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/09/vps22.png",alt:"Your Servers"}))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"Add a New Server"),":",(0,r.kt)("br",{parentName:"p"}
1),"\n","Now, click the ",(0,r.kt)("strong",{parentName:"p"},"Add New Server")," button to start connecting your VPS."),(0,r.kt)("p",{parentName:"li"},(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/09/vps2.png",alt:"Add New Server"}))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("strong",{parentName:"p"},"Input the Server Details"),":",(0,r.kt)("br",{parentName:"p"}),"\n","This will open the interface for adding your server details. Fill in the following fields:"),(0,r.kt)("table",{parentName:"li"},(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Field")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Description")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Name/Subdomain")),(0,r.kt)("td",{parentName:"tr",align:null},"Choose a name or subdomain to identify your server within UBOS.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"IP Address")),(0,r.kt)("td",{parentName:"tr",align:null},"Enter the public IP address of your AWS VPS.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Port")),(0,r.kt)("td",{parentName:"tr",align:null},"Use the default SSH port (22) unless you\u2019ve configured a different one.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"User")),(0,r.kt)("td",{parentName:"tr",align:null},"Input the SSH username you retrieved from the ",(0,r.kt)("strong",{parentName:"td"},"Connect")," tab.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Private Key")),(0,r.kt)("td",{parentName:"tr",align:null},"Select or add the SSH private key used for authentication.")))),(0,r.kt)("a",{name:"new-server"}))),(0,r.kt)("p",null,"   ",(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/09/vps3.png",alt:"Server Addition Interface"})),(0,r.kt)("ol",{start:5},(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("strong",{parentName:"li"},"Add Your Private Key"),":")),(0,r.kt)("p",null,"To add your private key to UBOS, first retrieve the private key file you created earlier by using the following command:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"  cat ~/.ssh/KEY_FILENAME\n")),(0,r.kt)("p",null," This will display the content of your private key. Copy the entire content, making sure it starts with ",(0,r.kt)("inlineCode",{parentName:"p"},"-----BEGIN OPENSSH PRIVATE KEY-----")," and ends with ",(0,r.kt)("inlineCode",{parentName:"p"},"-----END OPENSSH PRIVATE KEY-----"),"."),(0,r.kt)("p",null," ",(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/sshpriv.png",alt:null})),(0,r.kt)("p",null,"Next, click button ",(0,r.kt)("strong",{parentName:"p"},"Add Private key")," in the ",(0,r.kt)("strong",{parentName:"p"},(0,r.kt)("a",{parentName:"strong",href:"#new-server"},"New Server")),"  modal, you will see the following fields:"),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/sshkey2.png",alt:"Add Private Key"})),(0,r.kt)("p",null,"Fill out the form as follows:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Field")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"th"},"Description")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Name")),(0,r.kt)("td",{parentName:"tr",align:null},"Provide a unique name for the private key to easily identify it in the system.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Private Key")),(0,r.kt)("td",{parentName:"tr",align:null},"Paste the private key you copied. Ensure that it includes both the ",(0,r.kt)("inlineCode",{parentName:"td"},"BEGIN")," and ",(0,r.kt)("inlineCode",{parentName:"td"},"END")," lines of the key.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("strong",{parentName:"td"},"Select Key File")),(0,r.kt)("td",{parentName:"tr",align:null},"Alternatively, you can upload the private key file directly from your computer by clicking this button.")))),(0,r.kt)("p",null,"This interface allows you to either paste the private key manually or upload it from a file, giving you flexibility depending on how you stored your key."),(0,r.kt)("h3",{id:"step-3-finalize-the-connection"},"Step 3: Finalize the Connection"),(0,r.kt)("p",null,"After filling in all the required fields, click ",(0,r.kt)("strong",{parentName:"p"},"Submit")," to finalize the connection."),(0,r.kt)("p",null,"Your GCP VM is now successfully connected to the UBOS platform, allowing you to manage and run your services and applications. To check the status of your connected GCP VM, visit the ",(0,r.kt)("strong",{parentName:"p"},"Your Servers")," page under ",(0,r.kt)("strong",{parentName:"p"},"User Settings"),", where you will find a table displaying all connected VPS instances along with their current status."),(0,r.kt)("p",null,(0,r.kt)("img",{parentName:"p",src:"https://ubos.tech/wp-content/uploads/2024/10/vps1.png",alt:"Your Servers"})),(0,r.kt)("p",null,"For more details on how to use your connected VPS, visit our ",(0,r.kt)("a",{parentName:"p",href:"/docs/vps/workspace"},(0,r.kt)("strong",{parentName:"a"},"Attach Your Workspace"))," guide."),(0,r.kt)("p",null,"If you encounter any issues or need further assistance, don't hesitate to revisit the steps on this page or contact our support team for help."))}c.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.