David,<br>
<br>
Check the following page: <a href="http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html">http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html</a><br>
<br>
This should solve your problem.<br>
<br>
Pascal<br><br><div><span class="gmail_quote">On 10/14/05, <b class="gmail_sendername">David</b> <<a href="mailto:david@kenpro.com.au">david@kenpro.com.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to use dsa key pairs so that I can ssh in a cron script without<br>passwords. I've generated the key pair, then copied the public key to the<br>server. Client is Hoary, and server is Debian Sarge.<br><br>When I ssh, I get asked for a password. Is there some step I'm missing? Is
<br>there something in the sshd_config or ssh_config that needs fixing?<br><br>Another point: since sudo is not an option in this case, does that mean I<br>have to activate root?<br><br>While I'm asking.. can anyone tell me if there is any advantage of either RSA
<br>or DSA?<br><br>Below is what I actually did.<br><br>thanks... David.<br><br>david@foo:~/.ssh $ ssh-keygen -t dsa<br>Generating public/private dsa key pair.<br>Enter file in which to save the key (/home/david/.ssh/id_dsa):
<br>Enter passphrase (empty for no passphrase):<br>Enter same passphrase again:<br>Your identification has been saved in /home/david/.ssh/id_dsa.<br>Your public key has been saved in /home/david/.ssh/id_dsa.pub.<br>The key fingerprint is:
<br>david@foo:~/.ssh $ ls<br>authorized_keys  authorized_keys2  id_dsa  id_dsa.pub  known_hosts<br><br>david@foo:~/.ssh $ scp id_dsa.pub david@testbar:/home/david/.ssh/authorized_keys<br>Password:<br>id_dsa.pub                                    100%  600    
0.6KB/s   00:00<br>david@foo:~/.ssh $ ssh david@fast<br>Password:<br><br>DARN! Why does it ask for a password!<br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com
</a><br><a href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-users">http://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br>