SSH login for normal users using authorized keys
Mike Burger
mburger at bubbanfriends.org
Mon Nov 22 16:25:15 UTC 2004
On Mon, 22 Nov 2004, Jithesh wrote:
> Hi all,
>
> I was able to create successful login for the root account from a remote
> client with the help of the public key and the authorized key. But when
> I tried to do it for a normal account it still asks for the password.
>
> Here is what I have done
> 1. Generated the public key in the client machine.
> 2. Copied the same into the server's normal user account's
> ~/.ssh/authorized_keys
> 3. Changed the permission to read only for the file authorized_keys
>
> I did the same thing for the root account and it worked but not or other
> users.
This may not directly answer your question, but wouldn't it be a more
prudent move to have the users log into the remote system, and either su
to root, or use sudo to run root level commands? Using sudo, you can A)
log who ran what and B) not have to give out the root password.
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
To be notified of updates to the web site, visit
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
message to:
site-update-request at bubbanfriends.org
with a message of:
subscribe
More information about the redhat-list
mailing list