add .ssh/authorized_keys support for --sshcopyid
authorAntoine Beaupré <anarcat@debian.org>
Tue, 25 Feb 2020 19:46:43 +0000 (14:46 -0500)
committerAntoine Beaupré <anarcat@debian.org>
Tue, 25 Feb 2020 19:46:43 +0000 (14:46 -0500)
commit07e835eac738681f6c304584fca8bfe373c24365
tree0684e10e8a776848cae383f41458c4bbc74dcfce
parent5d3fdc8697e284776f0bb331ef73ac8ac8a34769
add .ssh/authorized_keys support for --sshcopyid

We retain backwards compatibility, that is: we use keys from the agent
by default. But if unavailable, we tap into the ~/.ssh/authorized_keys
file (or whatever is specified by the $AUTHORIZED_KEYS_SOURCE
environment).

The target SSH directory can be changed with $AUTHORIZED_KEYS_TARGET.

Closes: #151
grml-debootstrap