04-24-2023, 04:51 AM
It is the file we are talking about.
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.
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.