Oracle Cloud Infrastructure Documentation

Creating a Key Pair

Instances use an SSH key pair instead of a password to authenticate a remote user. A key pair file contains a private key and public key. You keep the private key on your computer and provide the public key every time you launch an instance.

To create key pairs, you can use a third-party tool such as OpenSSH on UNIX-style systems (including Linux, Solaris, BSD, and OS X) or PuTTY Key Generator on Windows.

Before You Begin

  • If you already have an SSH-2 RSA key pair, you can use your existing pair and skip this step. Proceed to Choosing a Compartment.
  • If you're using a Linux distribution, you probably already have the ssh-keygen utility installed. To determine if it's installed, type ssh-keygen on the command line. If it's not installed, you can download OpenSSH for UNIX from and install it.
  • If you're using Windows and you don't already have the PuTTY Key Generator, download it from and install it.

Creating a Key Pair

Creating an SSH Key Pair on the Command Line
Creating an SSH Key Pair on Windows Using PuTTY Key Generator

What's Next

Now that you have a key pair, continue on with Choosing a Compartment.