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

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

Choose no password. And you’re done…

2 comments on «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. Sven Welzel says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *