where do I keep my amazon .pem file on a mac

SecurityAmazon Web-ServicesPem

Security Problem Overview


Where should I keep this file for security? At the moment it is on my desktop - should I put it somewhere else?

Security Solutions


Solution 1 - Security

The 'standard' location would be a .ssh directory in your $HOME. i.e.

/Users/$USER/.ssh/

You should protect this directory with permissions 700. You can setup a config file to automatically use the .pem, and set the username when sshing to EC2 instances.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionleblaireauView Question on Stackoverflow
Solution 1 - SecurityDaniel ScottView Answer on Stackoverflow