cloud, macOS

Generate an SSH key on macOS

Generate an SSH key on macOS (Sierra 10.12.3)

Generating an SSH key with macOS is relatively straight forward using the variety of Terminal applications available for the OS.

I have written this post as part of a prereq documentation for building on Oracle Cloud Services, but the step apply regardless of your objective. There are plenty of places documenting these steps for both Windows and Linux

Open the Terminal application

To open the a terminal application you can either find it in the Dock, but if it’s not there, follow these steps:

  1. Click theĀ Applications icon in the dock
  2. Search for and click the Utilities folder
  3. Launch the Terminal application
SSH terminal image
Terminal Application on macOS

Generate the ssh key

Once your terminal window is open, to generate the ssh key, follow these steps:

Your private key is saved as “cloudKey” and your public key is “cloudKey.pub” both in the ~/.ssh directory. Next steps will be use these files to enable secure remote access without the need to use passwords.

Enjoy!


Also published on Medium.

One Commnet on “Generate an SSH key on macOS