-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Telford wrote:

>My desire is as root on hostA to run a crontab that
>periodically executes a command on hostB without supplying
>the root password.  Something like "ssh root@hostB command".
>
>My attempts are unsuccessful.  Each scheme ends with hostB
>prompts for a password.

The man pages for ssh-keygen and ssh, respectively, will explain how
to create a key for root and where to place it on the target to get
the result you want.  Synopsis: 

# ssh-keygen -t dsa     # formerly ssh-keygen -d

Accept default save location, no password.  Copy the resulting 
id_dsa.pub to target machine.  Then do on the target:

# cat id_dsa.pub >> /root/.ssh/authorized_keys2

Double check that the .ssh directories are readable only by root.

- -d

- -- 
David Talkington

PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp
- --
http://setiathome.ssl.berkeley.edu/pale_blue_dot.html

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQA/AwUBPF36279BpdPKTBGtEQLEkACgmQghhr17VhgJiBNKvgE0x6KKqGgAnjI4
jmZg+0xyrhWqDyOPUW9fJkSt
=rULa
-----END PGP SIGNATURE-----




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to