Copy ssh key in one command

Copy ssh key in one command

By devin, 11 November, 2015

This is absolutely brilliant

cat .ssh/id_rsa.pub | ssh remoteserver.example.com 'cat >> ~/.ssh/authorized_keys'

All credit to Matt Might

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.