Go to file
2022-11-10 10:07:41 +08:00
.github Remove codeql 2022-05-24 09:49:10 +08:00
debian Update dropbear.init 2022-07-22 15:14:27 +08:00
fuzz Ignore all-zero ed25519 keys in fuzzer-verify 2022-11-09 17:00:18 +08:00
libtomcrypt Make SHA1 optional, implement SHA256 fingerprints 2022-03-30 11:44:04 +08:00
libtommath Add flags so libtommath builds with -O3 2022-10-25 21:12:08 +08:00
test Add ecdsa OpenSSH format for dropbearconvert 2022-03-29 23:27:55 +08:00
.gitignore Default options comments, ignore localoptions.h 2022-03-30 13:52:04 +08:00
.hgignore
.hgsigs
.hgtags
agentfwd.h
algo.h
atomicio.c
atomicio.h
auth.h Merge egor-duda:sk-authkey-options 2022-11-09 16:14:59 +08:00
bignum.c Use buf_burn_free() instead of two calls 2022-03-29 23:47:30 +08:00
bignum.h
buffer.c Use buf_burn_free() instead of two calls 2022-03-29 23:47:30 +08:00
buffer.h Use buf_burn_free() instead of two calls 2022-03-29 23:47:30 +08:00
chachapoly.c
chachapoly.h
CHANGES Bump version to 2022.82 2022-04-01 14:43:27 +08:00
channel.h
chansession.h
circbuffer.c
circbuffer.h
cli-agentfwd.c
cli-auth.c Resort cli auth method tries 2022-09-19 17:45:55 +02:00
cli-authinteract.c Fix declaration after statement 2022-03-30 14:32:49 +08:00
cli-authpasswd.c
cli-authpubkey.c Use signature type not key type for debug message 2022-03-22 23:28:24 +08:00
cli-channel.c
cli-chansession.c
cli-kex.c Fix comment style 2022-09-19 18:25:26 +02:00
cli-main.c
cli-runopts.c Fix IPv6 address parsing for dbclient -b 2022-04-01 14:13:52 +08:00
cli-session.c
cli-tcpfwd.c
common-algo.c Remove twofish and remnants of blowfish 2022-03-30 10:23:39 +08:00
common-channel.c
common-chansession.c
common-kex.c Make SHA1 optional, implement SHA256 fingerprints 2022-03-30 11:44:04 +08:00
common-runopts.c Fix IPv6 address parsing for dbclient -b 2022-04-01 14:13:52 +08:00
common-session.c Use buf_burn_free() instead of two calls 2022-03-29 23:47:30 +08:00
compat.c Allow overriding shells for compat getusershell() 2022-11-09 18:40:10 +08:00
compat.h
config.guess Update to latest config.guess and config.sub 2022-03-30 21:42:23 +08:00
config.h.in
config.sub Update to latest config.guess and config.sub 2022-03-30 21:42:23 +08:00
configure Test linking for hardening options 2022-04-26 22:04:38 +08:00
configure.ac Test linking for hardening options 2022-04-26 22:04:38 +08:00
crypto_desc.c Make SHA1 optional, implement SHA256 fingerprints 2022-03-30 11:44:04 +08:00
crypto_desc.h
curve25519.c
curve25519.h
dbclient.1
dbhelpers.c
dbhelpers.h
dbmalloc.c
dbmalloc.h
dbmulti.c
dbrandom.c Make SHA1 optional, implement SHA256 fingerprints 2022-03-30 11:44:04 +08:00
dbrandom.h
dbutil.c Add m_snprintf() that won't return negative 2022-04-01 12:10:48 +08:00
dbutil.h Add m_snprintf() that won't return negative 2022-04-01 12:10:48 +08:00
debug.h Add -v variable debug levels for server too 2022-03-24 14:44:13 +08:00
default_options.h Add /usr/sbin and /sbin to default root PATH 2022-03-30 23:13:34 +08:00
DEVELOPING.md
dh_groups.c
dh_groups.h
dropbear_lint.sh dropbear_lint.sh: Use grep -- 2022-10-24 11:28:47 +08:00
dropbear.8 Merge pull request #160 from Jackkal/two-factor-authentication 2022-11-09 17:33:48 +08:00
dropbearconvert.1 Document supported formats for dropbearconvert 2022-03-30 12:03:50 +08:00
dropbearconvert.c Add -v variable debug levels for server too 2022-03-24 14:44:13 +08:00
dropbearkey.1
dropbearkey.c Make SHA1 optional, implement SHA256 fingerprints 2022-03-30 11:44:04 +08:00
dss.c
dss.h
ecc.c
ecc.h
ecdsa.c
ecdsa.h
ed25519.c
ed25519.h
fake-rfc2553.c
fake-rfc2553.h
filelist.txt
fuzz-wrapfd.h
fuzz.h
FUZZER-NOTES.md
fuzzers_test.sh
gcm.c
gcm.h
gendss.c
gendss.h
gened25519.c
gened25519.h
genrsa.c
genrsa.h
gensignkey.c Use buf_burn_free() instead of two calls 2022-03-29 23:47:30 +08:00
gensignkey.h
ifndef_wrapper.sh
includes.h
INSTALL
install-sh
kex.h
keyimport.c Remove commented ssh.com code from keyimport 2022-03-30 10:10:15 +08:00
keyimport.h
LICENSE
list.c
list.h
listener.c
listener.h
loginrec.c Fix utx var typo 2022-09-19 16:50:43 +02:00
loginrec.h
ltc_prng.c
ltc_prng.h
Makefile.in Support RSA OpenSSH new format in dropbearconvert 2022-03-29 22:27:55 +08:00
MULTI
netio.c
netio.h
options.h
packet.c Fix decompression size check 2022-10-25 21:17:56 +08:00
packet.h
process-packet.c
progressmeter.c
progressmeter.h
pubkeyapi.h
queue.c
queue.h
README Link to dropbear.nl in README 2022-08-04 21:39:28 +08:00
release.sh Add release.sh --testrel, github action 2022-03-24 12:22:07 +08:00
rsa.c
rsa.h
runopts.h Merge pull request #160 from Jackkal/two-factor-authentication 2022-11-09 17:33:48 +08:00
scp.c
scpmisc.c
scpmisc.h
service.h
session.h
signkey_ossh.c Add ecdsa OpenSSH format for dropbearconvert 2022-03-29 23:27:55 +08:00
signkey_ossh.h Add ecdsa OpenSSH format for dropbearconvert 2022-03-29 23:27:55 +08:00
signkey.c Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
signkey.h Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
sk-ecdsa.c Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
sk-ecdsa.h Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
sk-ed25519.c Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
sk-ed25519.h Implement no-touch-required and verify-requred for authorized_keys file 2022-06-11 19:17:40 +03:00
SMALL Remove twofish and remnants of blowfish 2022-03-30 10:23:39 +08:00
ssh.h Handle ecdsa-sk flags, reject no-touch 2022-03-30 21:06:15 +08:00
sshpty.c
sshpty.h
svr-agentfwd.c
svr-auth.c
svr-authpam.c make comments consistent and fix typo 2022-06-21 22:48:56 +02:00
svr-authpasswd.c make comments consistent and fix typo 2022-06-21 22:48:56 +02:00
svr-authpubkey.c Merge pull request #160 from Jackkal/two-factor-authentication 2022-11-09 17:33:48 +08:00
svr-authpubkeyoptions.c Merge egor-duda:sk-authkey-options 2022-11-09 16:14:59 +08:00
svr-chansession.c Fix indentations 2022-05-30 11:28:17 -04:00
svr-kex.c Allow user space file locations (rootless support) 2022-03-30 13:51:57 +08:00
svr-main.c Re-add missing setsid(), missed #ifdef conversion 2022-07-18 15:01:51 +08:00
svr-runopts.c Merge pull request #160 from Jackkal/two-factor-authentication 2022-11-09 17:33:48 +08:00
svr-service.c
svr-session.c Fix plugin argument 2022-11-09 13:14:22 +08:00
svr-tcpfwd.c Added permitopen option to authorized_keys 2022-07-12 10:35:00 +03:00
svr-x11fwd.c Fix X11 build failure, use DROPBEAR_PRIO_LOWDELAY 2022-04-23 22:33:31 +08:00
sysoptions.h Fix missing end quote in comment example 2022-11-10 10:07:41 +08:00
tcp-accept.c
tcpfwd.h
termcodes.c
termcodes.h
x11fwd.h

This is Dropbear, a smallish SSH server and client.
https://matt.ucc.asn.au/dropbear/dropbear.html

INSTALL has compilation instructions.

MULTI has instructions on making a multi-purpose binary (ie a single binary
which performs multiple tasks, to save disk space)

SMALL has some tips on creating small binaries.

A mirror of the Dropbear website and tarballs is available at https://dropbear.nl/mirror/

Please contact me if you have any questions/bugs found/features/ideas/comments etc :)
There is also a mailing list http://lists.ucc.gu.uwa.edu.au/mailman/listinfo/dropbear

Matt Johnston
matt@ucc.asn.au


In the absence of detailed documentation, some notes follow:
============================================================================

Server public key auth:

You can use ~/.ssh/authorized_keys in the same way as with OpenSSH, just put
the key entries in that file. They should be of the form:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwVa6M6cGVmUcLl2cFzkxEoJd06Ub4bVDsYrWvXhvUV+ZAM9uGuewZBDoAqNKJxoIn0Hyd0Nk/yU99UVv6NWV/5YSHtnf35LKds56j7cuzoQpFIdjNwdxAN0PCET/MG8qyskG/2IE2DPNIaJ3Wy+Ws4IZEgdJgPlTYUBWWtCWOGc= someone@hostname

You must make sure that ~/.ssh, and the key file, are only writable by the
user. Beware of editors that split the key into multiple lines.

Dropbear supports some options for authorized_keys entries, see the manpage.

============================================================================

Client public key auth:

Dropbear can do public key auth as a client, but you will have to convert
OpenSSH style keys to Dropbear format, or use dropbearkey to create them.

If you have an OpenSSH-style private key ~/.ssh/id_rsa, you need to do:

dropbearconvert openssh dropbear ~/.ssh/id_rsa  ~/.ssh/id_rsa.db
dbclient -i ~/.ssh/id_rsa.db <hostname>

Dropbear does not support encrypted hostkeys though can connect to ssh-agent.

============================================================================

If you want to get the public-key portion of a Dropbear private key, look at
dropbearkey's '-y' option.

============================================================================

To run the server, you need to generate server keys, this is one-off:
./dropbearkey -t rsa -f dropbear_rsa_host_key
./dropbearkey -t dss -f dropbear_dss_host_key
./dropbearkey -t ecdsa -f dropbear_ecdsa_host_key
./dropbearkey -t ed25519 -f dropbear_ed25519_host_key

or alternatively convert OpenSSH keys to Dropbear:
./dropbearconvert openssh dropbear /etc/ssh/ssh_host_dsa_key dropbear_dss_host_key

You can also get Dropbear to create keys when the first connection is made -
this is preferable to generating keys when the system boots. Make sure 
/etc/dropbear/ exists and then pass '-R' to the dropbear server.

============================================================================

If 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). Shadow passwords will also be unusable as non-root.

============================================================================

The Dropbear distribution includes a standalone version of OpenSSH's scp
program. You can compile it with "make scp", you may want to change the path
of the ssh binary, specified by _PATH_SSH_PROGRAM in options.h . By default
the progress meter isn't compiled in to save space, you can enable it by 
adding 'SCPPROGRESS=1' to the make commandline.