<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://www.stefanrufer.ch/snipsnap/rdf'>
    <s:Snip rdf:about='http://www.stefanrufer.ch/snipsnap/rdf#Virtual+Brain/Linux/SSH+Public+Key+Authentication'
         s:cUser='stefan'
         s:oUser='stefan'
         s:mUser='stefan'>
        <s:name>Virtual Brain/Linux/SSH Public Key Authentication</s:name>
        <s:content>Easy, but I always forget how to do it. Do this on client side:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;# generate a public/private keypair on host you want to connect from&#xD;&#xA;ssh-keygen -t rsa&#xD;&#xA;(enter passphrase if you like)&#xD;&#xA;&#xD;&#xA;# copy public key to host you want to connect to&#xD;&#xA;# make sure we do not overwrite an authorized_keys2 file &#xD;&#xA;# on the server side by checking there first!&#xD;&#xA;scp ~/.ssh/id_rsa.pub someuser@someserverhost:/home/someuser/.ssh/authorized_keys2&#xD;&#xA;&#xD;&#xA;# This should work without asking for a password now on the host you want to connect from:&#xD;&#xA;ssh -l someuser someserverhost&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;</s:content>
        <s:mTime>2009-01-13 15:05:14.17</s:mTime>
        <s:cTime>2007-10-07 18:20:09.405</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://www.stefanrufer.ch/snipsnap/rdf#Virtual Brain/Linux'/>
                <rdf:li rdf:resource='http://www.stefanrufer.ch/snipsnap/rdf#Virtual Brain'/>
                <rdf:li rdf:resource='http://www.stefanrufer.ch/snipsnap/rdf#Virtual+Brain/Linux'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>

