[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: help on a script

On Sat, 2004-06-05 at 07:38, Oliver Elphick wrote:
> > > Make the script executable and make sure the user under whose uid it
> > > will run is able to connect with ssh without supplying a password.
> > > 
> > 
> > How exactly would I do that? Make a user that doesn't have to supply a
> > password? Like the apache default www-data? How would I set up the user?
> On the target machine
>    mkdir ~/.ssh
> On the sending machine:
>    ssh-keygen -t dsa
> (leave the passphrase empty)
>    scp .ssh/id_dsa.pub [other machine]:.ssh

Sorry, that should be: 
   scp .ssh/id_dsa.pub [other machine]:/tmp
   ssh [other machine]
      cat /tmp/id_dsa.pub >>.ssh/authorized_keys

Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
     "Therefore being justified by faith, we have peace with
      God through our Lord Jesus Christ."       Romans 5:1 

Reply to: