-3

I am new to VPS, I have linux centos 6 and have followed instructions here to get started.

I have create ssh key for the root user from instructions here

I have disabled root log in and created a second user.

My problem is how dose the second user log in with the private ssh key ?

I've searched the net for hours and cant find any clear instruction how the second user (which is me) is able to login in with a private key file.

I've jumped in to this head first im afraid so any advice would be appreciated thanks.

RTB
  • 9

1 Answers1

2

The key is per user, so if you want to use the same private key to log in as your "second user" you will have to add the public key to the "second user"'s authorized_keys-file like you seem to have done for the root user.

mboehn
  • 377
  • 1
  • 9