Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


As discussed in this issue, 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

Steps to reproduce:
- Install a dropbear server (perhaps through a dietpi VM:
- 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

Closed by  Doug Newgard (Scimmia)
Sunday, 16 May 2021, 12:37 GMT
Reason for closing:  Upstream
Comment by Doug Newgard (Scimmia) - Sunday, 16 May 2021, 12:31 GMT
what does `type -a ssh-copy-id` give you?
Comment by Doug Newgard (Scimmia) - Sunday, 16 May 2021, 12:37 GMT
Actually, nevermind, see line 335 of the script.