Creating SSH Keys for Use with Oracle Cloud Services
Generating an SSH Key Pair Using PuTTY Key Generator
To generate an SSH key pair using the PuTTY Key Generator,
puttygen.exe
in the PuTTY folder on your computer, for example, C:\Program Files (x86)\PuTTY
. Double-click puttygen.exe
to open it.2048
bits, if it is not already set with that value..ssh
, to make it clear what format it is..pub
extension. You can give it any extension you want, but .pub
is a useful convention to indicate that this is a public key.
Creating an SSH Key Pair on the Command Line
To create an SSH key pair on the command line using ssh-keygen
:
ssh-keygen -t rsa -N "" -b "2048" -C "key comment" -f path/root_name
ssh-keygen
and then enter responses when prompted for a name and a passphrase. The keys will be created with default values: RSA keys of 2048 bits.ls path/root_name*
, for example,