ssh authorized_keys and hosts

On each of the sun machines we need a user 'abc' with the ssh authorized_hosts entries of xyz and also sudo rights

the ssh keys a dedicated to the one program prg.sh so that only this program can be run by the user.

so wat i have to do inorder to achieve the above task . i mean where i have to place the corresponding authorized_keys and hosts files and also how can i set ssh_keys to execute only one particular program.

[451 byte] By [] at [2007-11-25 22:51:13]
# 1

Place the authorized_keys file in the users home directory under ~/.ssh/

The authorized_keys file should contain the user's PUBLIC keys

/home/abc/.ssh/authorized_keys

Make sure the file is readable only by the owner 'abc' and the .ssh directory is readable only by the owner.

chown -R abc /home/abc/.ssh

chmod 500 /home/abc/.ssh

chmod 400 /home/abc/authorized_keys

If the permissions are incorrect sshd will log the error to STDLOG (/var/adm/messages)

Use RBAC instead of sudo. There is plenty of documentation on how to set this up in http://docs.sun.com/app/docs/doc/817-0365/6mg5vpmbd#hic

discostu at 2007-7-5 17:06:40 > top of Java-index,General,Sun Networking Services and Protocols...