You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Greg Alexander 0daf62e326 todo - notify script 4 months ago
..
debian stock dropbear-2020.81 source tree 7 months ago
libtomcrypt Merge branch 'dropbear' 7 months ago
libtommath Whoops, the previous commit failed to take into account files that were 7 months ago
.hg_archival.txt stock dropbear-2020.81 source tree 7 months ago
.hgsigs stock dropbear-2020.81 source tree 7 months ago
.travis.yml stock dropbear-2020.81 source tree 7 months ago
CHANGES stock dropbear-2020.81 source tree 7 months ago
DEVELOPING.md stock dropbear-2020.81 source tree 7 months ago
FUZZER-NOTES.md stock dropbear-2020.81 source tree 7 months ago
INSTALL stock dropbear-2020.81 source tree 7 months ago
LICENSE stock dropbear-2020.81 source tree 7 months ago
MULTI stock dropbear-2014.66 source tree 7 years ago
Makefile.in stock dropbear-2020.81 source tree 7 months ago
README stock dropbear-2020.81 source tree 7 months ago
SMALL stock dropbear-2014.66 source tree 7 years ago
agentfwd.h stock dropbear-2020.81 source tree 7 months ago
algo.h stock dropbear-2020.81 source tree 7 months ago
atomicio.c stock dropbear-2019.78 source tree 2 years ago
atomicio.h stock dropbear-2019.78 source tree 2 years ago
auth.h Merge branch 'dropbear' 2 years ago
bignum.c stock dropbear-2020.81 source tree 7 months ago
bignum.h stock dropbear-2019.78 source tree 2 years ago
buffer.c stock dropbear-2020.81 source tree 7 months ago
buffer.h stock dropbear-2020.81 source tree 7 months ago
chachapoly.c stock dropbear-2020.81 source tree 7 months ago
chachapoly.h stock dropbear-2020.81 source tree 7 months ago
channel.h stock dropbear-2019.78 source tree 2 years ago
chansession.h stock dropbear-2020.81 source tree 7 months ago
circbuffer.c stock dropbear-2019.78 source tree 2 years ago
circbuffer.h stock dropbear-2019.78 source tree 2 years ago
cli-agentfwd.c stock dropbear-2020.81 source tree 7 months ago
cli-auth.c stock dropbear-2019.78 source tree 2 years ago
cli-authinteract.c stock dropbear-2019.78 source tree 2 years ago
cli-authpasswd.c stock dropbear-2019.78 source tree 2 years ago
cli-authpubkey.c stock dropbear-2020.81 source tree 7 months ago
cli-channel.c stock dropbear-2014.66 source tree 7 years ago
cli-chansession.c stock dropbear-2019.78 source tree 2 years ago
cli-kex.c stock dropbear-2020.81 source tree 7 months ago
cli-main.c stock dropbear-2020.81 source tree 7 months ago
cli-runopts.c stock dropbear-2020.81 source tree 7 months ago
cli-session.c stock dropbear-2020.81 source tree 7 months ago
cli-tcpfwd.c stock dropbear-2019.78 source tree 2 years ago
common-algo.c stock dropbear-2020.81 source tree 7 months ago
common-channel.c stock dropbear-2019.78 source tree 2 years ago
common-chansession.c stock dropbear-2014.66 source tree 7 years ago
common-kex.c stock dropbear-2020.81 source tree 7 months ago
common-runopts.c stock dropbear-2020.81 source tree 7 months ago
common-session.c Merge branch 'dropbear' 7 months ago
compat.c stock dropbear-2019.78 source tree 2 years ago
compat.h stock dropbear-2019.78 source tree 2 years ago
config.guess stock dropbear-2019.78 source tree 2 years ago
config.h.in stock dropbear-2020.81 source tree 7 months ago
config.sub stock dropbear-2019.78 source tree 2 years ago
configure stock dropbear-2020.81 source tree 7 months ago
configure.ac stock dropbear-2020.81 source tree 7 months ago
crypto_desc.c stock dropbear-2020.81 source tree 7 months ago
crypto_desc.h stock dropbear-2019.78 source tree 2 years ago
curve25519.c stock dropbear-2020.81 source tree 7 months ago
curve25519.h stock dropbear-2020.81 source tree 7 months ago
dbclient.1 stock dropbear-2019.78 source tree 2 years ago
dbhelpers.c stock dropbear-2019.78 source tree 2 years ago
dbhelpers.h stock dropbear-2019.78 source tree 2 years ago
dbmalloc.c stock dropbear-2020.81 source tree 7 months ago
dbmalloc.h stock dropbear-2019.78 source tree 2 years ago
dbmulti.c stock dropbear-2019.78 source tree 2 years ago
dbrandom.c Preserve the commit 60fcaa6 hack even though the hack it's embedded 7 months ago
dbrandom.h stock dropbear-2019.78 source tree 2 years ago
dbutil.c Merge branch 'dropbear' 7 months ago
dbutil.h stock dropbear-2019.78 source tree 2 years ago
debug.h stock dropbear-2020.81 source tree 7 months ago
default_options.h stock dropbear-2020.81 source tree 7 months ago
dh_groups.c stock dropbear-2020.81 source tree 7 months ago
dh_groups.h stock dropbear-2020.81 source tree 7 months ago
dropbear.8 stock dropbear-2020.81 source tree 7 months ago
dropbear_lint.sh stock dropbear-2020.81 source tree 7 months ago
dropbearconvert.1 stock dropbear-2019.78 source tree 2 years ago
dropbearconvert.c stock dropbear-2019.78 source tree 2 years ago
dropbearkey.1 stock dropbear-2020.81 source tree 7 months ago
dropbearkey.c stock dropbear-2020.81 source tree 7 months ago
dss.c stock dropbear-2020.81 source tree 7 months ago
dss.h stock dropbear-2020.81 source tree 7 months ago
ecc.c stock dropbear-2020.81 source tree 7 months ago
ecc.h stock dropbear-2019.78 source tree 2 years ago
ecdsa.c stock dropbear-2019.78 source tree 2 years ago
ecdsa.h stock dropbear-2019.78 source tree 2 years ago
ed25519.c stock dropbear-2020.81 source tree 7 months ago
ed25519.h stock dropbear-2020.81 source tree 7 months ago
fake-rfc2553.c stock dropbear-2014.66 source tree 7 years ago
fake-rfc2553.h stock dropbear-2019.78 source tree 2 years ago
filelist.txt stock dropbear-2020.81 source tree 7 months ago
fuzz-common.c stock dropbear-2020.81 source tree 7 months ago
fuzz-harness.c stock dropbear-2020.81 source tree 7 months ago
fuzz-hostkeys.c stock dropbear-2020.81 source tree 7 months ago
fuzz-wrapfd.c stock dropbear-2020.81 source tree 7 months ago
fuzz-wrapfd.h stock dropbear-2020.81 source tree 7 months ago
fuzz.h stock dropbear-2020.81 source tree 7 months ago
fuzzer-kexdh.c stock dropbear-2019.78 source tree 2 years ago
fuzzer-kexecdh.c stock dropbear-2019.78 source tree 2 years ago
fuzzer-preauth.c stock dropbear-2019.78 source tree 2 years ago
fuzzer-preauth_nomaths.c stock dropbear-2019.78 source tree 2 years ago
fuzzer-pubkey.c stock dropbear-2020.81 source tree 7 months ago
fuzzer-verify.c stock dropbear-2020.81 source tree 7 months ago
fuzzers_test.sh stock dropbear-2020.81 source tree 7 months ago
gcm.c stock dropbear-2020.81 source tree 7 months ago
gcm.h stock dropbear-2020.81 source tree 7 months ago
gendss.c stock dropbear-2020.81 source tree 7 months ago
gendss.h stock dropbear-2019.78 source tree 2 years ago
gened25519.c stock dropbear-2020.81 source tree 7 months ago
gened25519.h stock dropbear-2020.81 source tree 7 months ago
genrsa.c stock dropbear-2020.81 source tree 7 months ago
genrsa.h stock dropbear-2019.78 source tree 2 years ago
gensignkey.c Remaining conflicts are more straightforward. Preserve both my hack and 7 months ago
gensignkey.h stock dropbear-2019.78 source tree 2 years ago
ifndef_wrapper.sh stock dropbear-2019.78 source tree 2 years ago
includes.h stock dropbear-2020.81 source tree 7 months ago
install-sh stock dropbear-2014.66 source tree 7 years ago
kex.h stock dropbear-2020.81 source tree 7 months ago
keyimport.c stock dropbear-2020.81 source tree 7 months ago
keyimport.h stock dropbear-2019.78 source tree 2 years ago
list.c stock dropbear-2019.78 source tree 2 years ago
list.h stock dropbear-2019.78 source tree 2 years ago
listener.c stock dropbear-2019.78 source tree 2 years ago
listener.h stock dropbear-2019.78 source tree 2 years ago
localoptions.h Define the filename for ed25519 keys, instead of using the default 7 months ago
loginrec.c stock dropbear-2019.78 source tree 2 years ago
loginrec.h stock dropbear-2019.78 source tree 2 years ago
ltc_prng.c stock dropbear-2019.78 source tree 2 years ago
ltc_prng.h stock dropbear-2019.78 source tree 2 years ago
netio.c Merge branch 'dropbear' 7 months ago
netio.h stock dropbear-2019.78 source tree 2 years ago
options.h stock dropbear-2019.78 source tree 2 years ago
packet.c stock dropbear-2020.81 source tree 7 months ago
packet.h stock dropbear-2019.78 source tree 2 years ago
process-packet.c stock dropbear-2020.81 source tree 7 months ago
progressmeter.c stock dropbear-2014.66 source tree 7 years ago
progressmeter.h stock dropbear-2014.66 source tree 7 years ago
pubkeyapi.h stock dropbear-2020.81 source tree 7 months ago
queue.c stock dropbear-2019.78 source tree 2 years ago
queue.h stock dropbear-2019.78 source tree 2 years ago
release.sh stock dropbear-2019.78 source tree 2 years ago
rsa.c stock dropbear-2020.81 source tree 7 months ago
rsa.h stock dropbear-2020.81 source tree 7 months ago
runopts.h stock dropbear-2020.81 source tree 7 months ago
scp.c Merge branch 'dropbear' 7 months ago
scpmisc.c stock dropbear-2019.78 source tree 2 years ago
scpmisc.h stock dropbear-2019.78 source tree 2 years ago
service.h stock dropbear-2019.78 source tree 2 years ago
session.h stock dropbear-2020.81 source tree 7 months ago
signkey.c fix "Non-matching signing type" 7 months ago
signkey.h stock dropbear-2020.81 source tree 7 months ago
ssh.h stock dropbear-2020.81 source tree 7 months ago
sshpty.c stock dropbear-2014.66 source tree 7 years ago
sshpty.h stock dropbear-2014.66 source tree 7 years ago
svr-agentfwd.c stock dropbear-2019.78 source tree 2 years ago
svr-auth.c Merge branch 'dropbear' 7 months ago
svr-authpam.c stock dropbear-2019.78 source tree 2 years ago
svr-authpasswd.c After a warning audit, fix the one warning that is my fault. The other 7 months ago
svr-authpubkey.c Remaining conflicts are more straightforward. Preserve both my hack and 7 months ago
svr-authpubkeyoptions.c stock dropbear-2020.81 source tree 7 months ago
svr-chansession.c Merge branch 'dropbear' 7 months ago
svr-kex.c stock dropbear-2020.81 source tree 7 months ago
svr-main.c Merge branch 'dropbear' 7 months ago
svr-runopts.c stock dropbear-2020.81 source tree 7 months ago
svr-service.c stock dropbear-2019.78 source tree 2 years ago
svr-session.c stock dropbear-2020.81 source tree 7 months ago
svr-tcpfwd.c stock dropbear-2019.78 source tree 2 years ago
svr-x11fwd.c stock dropbear-2019.78 source tree 2 years ago
sysoptions.h stock dropbear-2020.81 source tree 7 months ago
tcp-accept.c stock dropbear-2019.78 source tree 2 years ago
tcpfwd.h stock dropbear-2019.78 source tree 2 years ago
termcodes.c stock dropbear-2019.78 source tree 2 years ago
termcodes.h stock dropbear-2019.78 source tree 2 years ago
x11fwd.h stock dropbear-2019.78 source tree 2 years ago

README

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.

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.