Question
Is it secure to have multiple servers with the same SSH key?
Let’s say I have configured a server with the LAMP stack and set up an SSH key which is configured as an access key for a git repository.
After configuring this server, I also want to create a staging and development server, so I create a snapshop of the server and create two copies of this snapshot. This results in 3 servers with the same SSH keys used to access the GIT repository. These SSH keys are only used for read access to the GIT repository.
Are there any reasons (security wise) to not do this, and make sure a unique SSH key is configured for each copy of the original server?
Thanks in advance!
I found this thread that revolves around the same questions, but as that’s quite old, I was wondering what the current viewpoint on this matter is.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×