Copy your SSH keys to remote server

By March 16, 2017Linux
[raw] cat ~/.ssh/id_rsa.pub | ssh root@example.com ‘cat – >> ~/.ssh/authorized_keys’
[/raw]

Don’t forget you need local permissions set properly to use ssh keys.

[raw] chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
[/raw]

Leave a Reply