Can a EC2 Server on AWS have two pairs of SSH Keys? - Printable Version +- SEO MotionZ Forum (https://seomotionz.com) +-- Forum: Domain & Web Hosting (https://seomotionz.com/forumdisplay.php?fid=38) +--- Forum: Web Hosting Forum (https://seomotionz.com/forumdisplay.php?fid=39) +---- Forum: Cloud Hosting (https://seomotionz.com/forumdisplay.php?fid=43) +---- Thread: Can a EC2 Server on AWS have two pairs of SSH Keys? (/showthread.php?tid=20598) |
Can a EC2 Server on AWS have two pairs of SSH Keys? - nationwide - 04-24-2023 I have a EC2 server running on AWS. So, far it's been 6 months and the service against the price is great. But now I have to get a new pair of SSH keys for an another computer. Is it even doable? If yes then how? RE: Can a EC2 Server on AWS have two pairs of SSH Keys? - elliekushn - 04-24-2023 It is the file we are talking about. Code: /home/users/ec2-user/.ssh/authorized_keys Now you can do two things here. Create a keypair via ssh-keygen and add the public half to the above file. Or, you can create a new user and add the key pair to the file within their user directory after that. My suggestion to you will be create a new user for your second machine. It will be much wiser way. RE: Can a EC2 Server on AWS have two pairs of SSH Keys? - zeus - 04-25-2023 (04-24-2023, 04:36 AM)nationwide Wrote: I have a EC2 server running on AWS. So, far it's been 6 months and the service against the price is great. But now I have to get a new pair of SSH keys for an another computer. Is it even doable? If yes then how? Create new user just like @elliekushn suggested. There are other methods such as giving away log in info to others and what nots including creating a new key pair. But those are not recommended. RE: Can a EC2 Server on AWS have two pairs of SSH Keys? - nationwide - 04-26-2023 Tried to create a new keywpair and failed miserably. RE: Can a EC2 Server on AWS have two pairs of SSH Keys? - mehakkj - 05-08-2023 hi you are talking about EC2 server running on AWS, for that search on google. |