gpg: Signature made Tue Sep 14 14:26:09 2021 UTC
gpg: using DSA key 0E4236CB52951E14536066222099B64CBF15490B
gpg: Good signature from "Andy Smith <andy@strugglers.net>" [unknown]
gpg: aka "Andrew James Smith <andy@strugglers.net>" [unknown]
gpg: aka "Andy Smith (UKUUG) <andy.smith@ukuug.org>" [unknown]
gpg: aka "Andy Smith (BitFolk Ltd.) <andy@bitfolk.com>" [unknown]
gpg: aka "Andy Smith (Linux User Groups UK) <andy@lug.org.uk>" [unknown]
gpg: aka "Andy Smith (Cernio Technology Cooperative) <andy.smith@cernio.com>" [unknown]
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