> > My concern is to execute cvommand and access files in directory which
> > is on the
> > server. I want to execute those files from the local machine via ssh
> > and
> > for this i need to have a common key so that i dont have to keep making
> > different keys all the time
> > If u have a solution or a cookbook kind of a thing for this please help
> > me
> > jenil
> When I set up no-passwd for root so I could do rsync backups with ssh
> on the LAN, in root's home dir I did something like this:
> ssh-keygen -t rsa
> This should create the files:
> .ssh/id_rsa
> .ssh/id_rsa.pub
> Then I copied id_rsa.pub as .ssh/authorized_keys2 to my home dir on the
> remote host.
There's a little bit more.
Your (remote user's) home directory can't be readable by anyone but the
user, or the login will still require your password. It can be
executable but not readable. I personally would make your .ssh
directory be mode 700 too.
I would advise against allowing root to ssh in, I think it's safer to
set up sudo and then make it so root must use the local terminal.
You're saying "access" and "execute" both. Presumably these are
scripts and you want to run them from remote?