How to generate a key on Linux, Mac OS X or any other Unix-like operating system:
$ ssh-keygen
How to use a key if you specified a different file path:
$ ssh user@hostname -i /path/to/the/private/key
How to generate a key on Linux, Mac OS X or any other Unix-like operating system:
$ ssh-keygen
How to use a key if you specified a different file path:
$ ssh user@hostname -i /path/to/the/private/key