So I found the documentation to create a user without a domain. How To Create a WHM Reseller Without an Associated Domain
The question is how do I assign ssh keys to this username?
The question is how do I assign ssh keys to this username?
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.So you can SSH in as the user?
Generate the key pair, ssh-copy-id -i [path to public key] [email protected]
It should ask you for your password, and if good, copy the key over.
-Jason
[email protected] $ ssh-copy-id -i ~/.ssh/id_dsa.pub [email protected]
<it should ask you for the password, and will copy over the key into authorized_keys if things go well>
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 |
---|---|---|---|---|
![]() |
Root Login with Public Key? | Security | 2 | |
![]() |
SSH - Accessing sent publickey gssapi-keyex gssapi-with-mic | Security | 1 | |
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 |