On Saturday 15 March 2003 03:28 pm, Michael Noble wrote: > I have been trying without success to use ssh to remote > machines as myself and as root. It works fine as long as > I give a password for the UID. What I need is to be able > to use SSH without the need to be prompted for a passwd. > Can anybody tell me how to do this. > > Thanks, > Mike
In /root/.ssh on every machine ssh-keygen -tdsa save as <hostname.id_dsa> empty for no passphrase cp hostname.id_dsa myprivatekey one one machine create a file "config" with one stanza for every machine like this Host xxxx User root Compression yes Protocol 2 RSAAuthentication yes StrictHostKeyChecking no ForwardAgent yes ForwardX11 yes IdentityFile /root/.ssh/myprivatekey replace xxxx with the name of each host create a file authorized_keys2 with vi. do not cut and paste read each public key into this file (:r xxx.pub) scp config and authorized_keys2 to each machine try ssh xxxx works for me
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
