[lug] ssh and pubkey
Warren Sanders
sanders at montanalinux.org
Mon Aug 12 19:14:19 MDT 2002
I did just this task today. If I can remember the exact steps...
First off I think you may already know the first steps, but for the sake
of others and documentation...
1. ssh-kegen -t rsa
2. ssh-agent bash (or whatever shell)
3. ssh-add
4. scp $user/.ssh/id_rsa.pub $user at other-box:$user/.ssh/authorized_keys
In my case I did localdomain root accounts on both sides. I can access
both sides without authentication. My purpose for doing this was to run
rsync over ssh transport as a cron job.
j davis wrote:
> Hello,
> I tried setting up ssh to not use a passwd so i could have my
> scrips log in using id_dsa....so i got kinda confused here...
>
> You must now put the public key on the remote machine
>
> * Copy the public key to the server: use scp, ftp, email, paste it
> with a mouse, anything.
> * Connect to the server with ssh and password authentication.
> * put the key in the ``correct'' place. This depends on your
> implementation and version.
>
> OpenSSH (SSH-1)
>
> copy the key into /.ssh/authorized_keys
> OpenSSH (SSH-2)
>
> copy the key into /.ssh/authorized_keys2
> Sun SSH Solaris 9 (SSH-2)
>
> copy the key into /.ssh/authorized_keys
> Commercial SSH (SSH-1)
>
> copy the key into /.ssh/authorized_keys
> Commercial SSH (SSH-2)
>
> copy the key to the file /.ssh2/mykey.pub and create a file called
> /.ssh2/authorization that contains a line Key mykey.pub
>
> um...does /.ssh mean create .ssh/authorized_keys in / or what...
> im using rh7.3 up2dated sshd.
>
> thanks,
> jd
>
> jd at taproot.bz
> http://www.taproot.bz
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
--
Warren Sanders
http://MontanaLinux.org
More information about the LUG
mailing list