FS#70901 - ssh-copy-id to dropbear server installs authorized_keys in wrong location
Attached to Project:
Arch Linux
Opened by Ronny D. (RonnyD) - Sunday, 16 May 2021, 11:31 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 16 May 2021, 12:37 GMT
Opened by Ronny D. (RonnyD) - Sunday, 16 May 2021, 11:31 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 16 May 2021, 12:37 GMT
|
Details
Description:
As discussed in this issue https://github.com/MichaIng/DietPi/issues/4380, it seems that Arch's `ssh-copy-id` puts the authorized key to `/etc/dropbear/authorized_keys` as opposed to `~/.ssh/authorized_keys` when interacting with a dropbear SSH server. This deviates to other `ssh-copy-id` packages such as on RaspberryPiOS. Additional info: * OpenSSH_8.6p1, OpenSSL 1.1.1k 25 Mar 2021 * https://github.com/MichaIng/DietPi/issues/4380 Steps to reproduce: - Install a dropbear server (perhaps through a dietpi VM: https://dietpi.com/) - generate a ssh key using `ssh-keygen` - copy ssh key to server using `ssh-copy-id` - find the file in `/etc/dropbear/authorized_keys instead` of `~/.ssh/authorized_keys` |
This task depends upon
Comment by Doug Newgard (Scimmia) -
Sunday, 16 May 2021, 12:31 GMT
Comment by Doug Newgard (Scimmia) -
Sunday, 16 May 2021, 12:37 GMT
what does `type -a ssh-copy-id` give you?
Actually, nevermind, see line 335 of the script.