Skip to content

restrict and no-user-rc in authorized_keys cause error in dropbear(openwrt). #21383

@mokeyish

Description

@mokeyish

Description

I can't use git clone git@xxxx in openwrt after PR #17772. It would be ok after I delete no-user-rc,restrict manully.

The error output


✘ root@Me  ~/abc  git clone git@xxxx:yyy/abc.git
Cloning into 'abc'...
git@xxxx: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


The system log

Sun Oct  9 11:12:51 2022 authpriv.info dropbear[16361]: Child connection from 192.168.1.10:51874
Sun Oct  9 11:12:51 2022 authpriv.warn dropbear[16361]: Port forwarding disabled.
Sun Oct  9 11:12:51 2022 authpriv.warn dropbear[16361]: Agent forwarding disabled.
Sun Oct  9 11:12:51 2022 authpriv.warn dropbear[16361]: Pty allocation disabled.
Sun Oct  9 11:12:51 2022 authpriv.warn dropbear[16361]: Bad public key options at /home/git/.ssh/authorized_keys:2
Sun Oct  9 11:12:51 2022 authpriv.info dropbear[16361]: Exit before auth from <192.168.1.10:51874>: (user 'git', 0 fails): Exited normally
Sun Oct  9 11:12:52 2022 authpriv.info dropbear[16362]: Child connection from 192.168.1.10:51877

Gitea Version

After PR #17772

Screenshots

Dropbear version:

图片

Git Version

2.34.3

Operating System

OpenWrt(22). x86-64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions