2000-06-29-12:38:38 Didier Journois:
> Using openSSH I am unable to use it instead of rsh even when
> $RSYNC_PASSWORD is set or by reading the password in a file. I
> am prompted for entering it avoiding to use a non interactive
> transfer. Is there one other env variable I missed for ssh ?
For those folks using ssh2, the procedure is only slightly different
from the one Bennet described, but since it took me a day or so to
figure it out, I thought this might help:
# on the master host, generate public/private keys if not already available;
# the following command generates files ~/.ssh2/id_dsa_1024_a and
# ~/.ssh2/id_dsa_1024_a.pub
ssh-keygen2
# add entry for file containing private key to user's identification file
echo 'IdKey id_dsa_1024_a' > ~/.ssh2/identification
# now generate passwordless public/private key pair on remote server
ssh2 remote ssh-keygen2 -P
# copy public key from master host to remote:
scp2 ~/.ssh2/id_dsa_1024_a.pub remote:.ssh2/master_id_dsa_1024_a.pub
# add master's public key to the list of public keys
ssh2 remote 'echo Key master_id_dsa_1024_a.pub > .ssh2/authorization'
# now you should be able to log into remote from master without having
# to type in a password via "ssh2 remote"
-- Alberto
****************************************************************************
Alberto Accomazzi mailto:[EMAIL PROTECTED]
NASA Astrophysics Data System http://adsabs.harvard.edu
Harvard-Smithsonian Center for Astrophysics http://cfawww.harvard.edu
60 Garden Street, MS 83, Cambridge, MA 02138 USA
****************************************************************************