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