On Tue, Sep 14, 2021 at 10:45:47AM +0200, Samuel Bächler wrote:
***** Deploy Key
me@client:~$ ssh USER@HOST "echo \"$(cat ~/.ssh/public-key.pub)\"
>>
.ssh/authorized_keys"
There's "ssh-copy-id" to do this bit a little easier:
$ ssh-copy-id user@host
takes care of putting all loaded identities into that user@host's
authorized_keys file. If the key isn't already loaded as an identity
(or you only mean to add a specific one) you can force it to use it
like:
$ ssh-copy-id -i ~/.ssh/mykey user@host
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting