I followed your steps but after seeing the result I think there is some confusion. I am looking to close root from login. I am then looking at disabling passwords. I would like to create a user that I can use for this task. I have a user that has been created and has no domain attached to it. It is in the wheel group so it has su access. I need to add keys to this user so I can login without a password. I have already created a .ssh directory and an authorized_key file. With your step there is now a public and a private key generated as well. I figured that adding a authorized key file would do the trick but that didn't work.
is really just adding items that already exist because I manually put them in to the authorized_keys file already.ssh-copy-id
|Thread starter||Similar threads||Forum||Replies||Date|
|R||Accessing server with public/private key authentication failed||Security||4|
|N||How to Public Key Pinning||Security||1|
|S||Server refused public key despite accepting key||Security||7|
|Cannot get Public Key to work||Security||1|
|P||How to check which user with public key has logged in server via ssh?||Security||3|