{"id":13466406,"url":"https://github.com/mkj/dropbear","last_synced_at":"2026-05-03T07:04:38.910Z","repository":{"id":37579898,"uuid":"8876769","full_name":"mkj/dropbear","owner":"mkj","description":"Dropbear SSH","archived":false,"fork":false,"pushed_at":"2025-05-06T14:53:34.000Z","size":18390,"stargazers_count":1868,"open_issues_count":48,"forks_count":410,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-05-06T15:56:20.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://matt.ucc.asn.au/dropbear/dropbear.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkj.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-03-19T11:15:36.000Z","updated_at":"2025-05-06T14:53:38.000Z","dependencies_parsed_at":"2024-05-16T16:45:39.311Z","dependency_job_id":"fddef8c8-5e49-4be2-bb91-faff14f6c032","html_url":"https://github.com/mkj/dropbear","commit_stats":{"total_commits":1840,"total_committers":90,"mean_commits":"20.444444444444443","dds":"0.15815217391304348","last_synced_commit":"7e1b2dbd344041252935bde7f597b792e2fe602d"},"previous_names":[],"tags_count":64,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fdropbear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fdropbear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fdropbear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fdropbear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkj","download_url":"https://codeload.github.com/mkj/dropbear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254059519,"owners_count":22007771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:43.654Z","updated_at":"2026-05-03T07:04:38.815Z","avatar_url":"https://github.com/mkj.png","language":"C","funding_links":[],"categories":["C","Honeypots"],"sub_categories":[],"readme":"## Dropbear SSH\nA smallish SSH server and client\nhttps://matt.ucc.asn.au/dropbear/dropbear.html\n\n[INSTALL.md](INSTALL.md) has compilation instructions.\n\n[MULTI.md](MULTI.md) has instructions on making a multi-purpose binary (ie a single binary which performs multiple tasks, to save disk space).\n\n[SMALL.md](SMALL.md) has some tips on creating small binaries.\n\nA mirror of the Dropbear website and tarballs is available at https://dropbear.nl/mirror/.\n\nPlease contact me if you have any questions/bugs found/features/ideas/comments etc\nThere is also a mailing list https://lists.ucc.asn.au/mailman/listinfo/dropbear\n\nMatt Johnston\nmatt@ucc.asn.au\n\n\n### In the absence of detailed documentation, some notes follow\n\n----\n#### Server public key auth\n\nYou can use `~/.ssh/authorized_keys` in the same way as with OpenSSH, just put the key entries in that file.\nThey should be of the form:\n\n    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwVa6M6cGVmUcLl2cFzkxEoJd06Ub4bVDsYrWvXhvUV+ZAM9uGuewZBDoAqNKJxoIn0Hyd0NkyU99UVv6NWV/5YSHtnf35LKds56j7cuzoQpFIdjNwdxAN0PCET/MG8qyskG/2IE2DPNIaJ3Wy+Ws4IZEgdJgPlTYUBWWtCWOGc= someone@hostname\n\nYou must make sure that `~/.ssh`, and the key file, are only writable by the user.\nBeware of editors that split the key into multiple lines.\n\nDropbear supports some options for authorized_keys entries, see the manpage.\n\n----\n#### Client public key auth\n\nDropbear can do public key auth as a client.\nBut you will have to convert OpenSSH style keys to Dropbear format, or use dropbearkey to create them.\n\nIf you have an OpenSSH-style private key `~/.ssh/id_rsa`, you need to do:\n\n```sh\ndropbearconvert openssh dropbear ~/.ssh/id_rsa  ~/.ssh/id_rsa.db\ndbclient -i ~/.ssh/id_rsa.db \u003chostname\u003e\n```\n\nDropbear does not support encrypted hostkeys though can connect to ssh-agent.\n\n----\nIf you want to get the public-key portion of a Dropbear private key, look at dropbearkey's `-y` option.\nIt will print both public key and fingerprint. If you need the pub key only you can grep by a prefix `ssh-`: \n```sh\n./dropbearkey -y -f ~/.ssh/id_ed25519 | grep \"^ssh-\" \u003e ~/.ssh/id_ed25519.pub\n```\n\n----\nTo run the server, you need to generate server keys, this is one-off:\n\n```sh\n./dropbearkey -t rsa -f dropbear_rsa_host_key\n./dropbearkey -t dss -f dropbear_dss_host_key\n./dropbearkey -t ecdsa -f dropbear_ecdsa_host_key\n./dropbearkey -t ed25519 -f dropbear_ed25519_host_key\n```\n\nOr alternatively convert OpenSSH keys to Dropbear:\n\n```sh\n./dropbearconvert openssh dropbear /etc/ssh/ssh_host_dsa_key dropbear_dss_host_key\n```\n\nYou can also get Dropbear to create keys when the first connection is made - this is preferable to generating keys when the system boots.\nMake sure `/etc/dropbear/` exists and then pass `-R` to the dropbear server.\n\n----\nIf the server is run as non-root, you most likely won't be able to allocate a pty, and you cannot login as any user other than that running the daemon (obviously).\nShadow passwords will also be unusable as non-root.\n\n----\nThe Dropbear distribution includes a standalone version of OpenSSH's `scp` program.\nYou can compile it with `make scp`.\nYou may want to change the path of the ssh binary, specified by `_PATH_SSH_PROGRAM` in `options.h`.\nBy default the progress meter isn't compiled in to save space, you can enable it by adding `SCPPROGRESS=1` to the `make` commandline.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fdropbear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkj%2Fdropbear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fdropbear/lists"}