Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to generate SSH keys for your Oracle Database@Google Cloud
resources.
To authenticate your Oracle Database@Google Cloud connection, you need to generate
an SSH key pair. You need to create an SSH key pair at least once in your project.
You can reuse the same key pair for multiple VM Clusters or create
a new key pair for each VM Cluster. You can generate
an SSH key pair using the ssh-keygen command.
Generate an SSH key pair
To generate an SSH key pair, run the following command:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Generate SSH keys\n\nThis page describes how to generate SSH keys for your Oracle Database@Google Cloud\nresources.\n\nTo authenticate your Oracle Database@Google Cloud connection, you need to generate\nan SSH key pair. You need to create an SSH key pair at least once in your project.\nYou can reuse the same key pair for multiple VM Clusters or create\na new key pair for each VM Cluster. You can generate\nan SSH key pair using the `ssh-keygen` command.\n\nGenerate an SSH key pair\n------------------------\n\nTo generate an SSH key pair, run the following command: \n\n ssh-keygen -b 4096 -f \u003cvar translate=\"no\"\u003eSSH_KEY_ID\u003c/var\u003e -N \u003cvar translate=\"no\"\u003ePASSPHRASE\u003c/var\u003e -t rsa\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSSH_KEY_ID\u003c/var\u003e: this is the root name of your SSH key file used to generate the public and private keys\n- \u003cvar translate=\"no\"\u003ePASSPHRASE\u003c/var\u003e: this is the passphrase used when accessing your resources using Google Cloud console\n\nThe `ssh-keygen` command saves your private key to a file called\n\u003cvar translate=\"no\"\u003eSSH_KEY_ID\u003c/var\u003e and your public key to a file called\n\u003cvar translate=\"no\"\u003eSSH_KEY_ID.pub\u003c/var\u003e in your home directory.\n\nWhat's next\n-----------\n\n- [Configure a VPC network](/oracle/database/docs/configure-vpc) for your resources.\n- [Create a VM Cluster](/oracle/database/docs/create-clusters).\n- [Learn more about Oracle Database@Google Cloud](/oracle/database/docs/overview)."]]