Portal Home > Knowledgebase > Articles Database > ssh public keys
ssh public keys
Posted by oozypal, 05-11-2012, 03:19 AM |
Hello,
I have a dedi and a vps. The dedi is the production server and the vps is the testing server.
I log to my dedi using a public key I created in my Linux Box. Is it possible if I copy my public key to my testing VPS that any of testers can use this public key to access my dedi?
If yes, how can I solve this problem? Can I have multiple public keys, one for each server?
Thank you
HAB
|
Posted by gigatux, 05-11-2012, 04:52 AM |
Are you saying that you gave your testers copies of your private key so they could log into the dedi?
What you really should be doing is:
1. Create a new private/public key pair
2. Copy the public key to dedi and vps. Keep the private key to yourself
3. Create a new private/public key pair for your testers
4. Copy the public key to your vps (just add it to authorized_keys)
5. Give the private key to your testers
|
Posted by oozypal, 05-11-2012, 02:47 PM |
Nope! What I am saying is that I am accessing my two servers using public keys but my testers have the password for the testing VPS.
My questions is that will they be able to use my public stored in the VPS to access my dedi?
Thx a lot,
|
Posted by rcs, 05-11-2012, 03:29 PM |
no, they need the private key to use the public key.
|
Posted by gigatux, 05-11-2012, 05:50 PM |
Well, if you're using the same public/private key pairs for both your VPS and dedi then yes, they can. I assume that you are not though, so you should be safe.
|
Posted by oozypal, 05-12-2012, 12:59 AM |
Ok, Thank you.
So, how can I create different public keys for different servers?
Thank you,
OOzy
|
Posted by VectorVPS, 05-12-2012, 01:58 AM |
Generate new public/private key pairs for each individual user that needs access. For additional security (at the expense of some convenience of course), you could generate separate key pairs for each user and for each server.
|
Add to Favourites Print this Article
Also Read