I wish to add a ssh key for 1 specific user/domain so that the user can login using ssh without entering a password.
Normally you add the key to ~/.ssh/authorized_keys and it works.
I test it for the root user and this works, but for the domain there is no .ssh folder and files.
I created a file called "authorized_keys" in /home/<username>/.ssh and added the key, of course I first enabled and tested the SSH account.
I can login normally using SSH of this domain, after adding the jey into authorized_keys this user should be able to login without entering a password.
You guessed it, no go.... still a password prompt.
What do I wrong here or must I add the key somewhere else?
(the key works, as soon as I add the key at the root user it can login without any password)
Normally you add the key to ~/.ssh/authorized_keys and it works.
I test it for the root user and this works, but for the domain there is no .ssh folder and files.
I created a file called "authorized_keys" in /home/<username>/.ssh and added the key, of course I first enabled and tested the SSH account.
I can login normally using SSH of this domain, after adding the jey into authorized_keys this user should be able to login without entering a password.
You guessed it, no go.... still a password prompt.
What do I wrong here or must I add the key somewhere else?
(the key works, as soon as I add the key at the root user it can login without any password)