depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. Password less sign in to Ubuntu

    May 14, 2014 by The Man

    First create your key (something like this but google for a better scope)

    ssh-keygen -t rsa -C "your_email@example.com"
    

    Remember you only need to do this once

    then on each Ubuntu server you want to log into. Changing username to your username and xx.xx.xx.xx to the ip or fqdn of the server.

    cat ~/.ssh/id_rsa.pub | ssh username@xxx.xxx.xxx.xxx "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys"