Single-line key-less SSH remote login (but you already knew that)

2008
07.11
ssh-keygen -t dsa
cat ~/.ssh/id_dsa.pub | ssh youruser@example.com 'cat - >> ~/.ssh/authorized_keys2'

Choose no password. And you’re done…

Tags: , ,

2 Responses to “Single-line key-less SSH remote login (but you already knew that)”

  1. Sven says:

    Even easier is this:

    ssh-keygen -t dsa
    && ssh-copy-id -i ~/.ssh/id_dsa.pub user@server

  2. That one above is a far easier solution to keyless ssh login from the bash command line using key signatures!

Your Reply