Mac

Log in with an SSH private key on Linux and Mac

This example demonstrates how to use a private key to log in to a Linux server by using a private key by using a Terminal session on OS X. However, you can follow the same process to use a private key when using any terminal software on Linux.

Note: For information about using SSH private keys on Windows operating systems, see Logging in with an SSH Private Key on Windows.

Prerequisites
To complete this process, you need the following software applications:

Mac show hidden files

The long way to show hidden Mac OS X files is as follows:
Open Terminal found in Finder > Applications > Utilities.
In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES.
Press return.
Hold the 'Option/alt' key, then right click on the Finder icon in the dock and click Relaunch.