Go to file
2016-09-01 23:08:56 +08:00
debian changelogs 2016-07-21 23:04:24 +08:00
libtomcrypt
libtommath
.hgsigs merge 2016.74 2016-07-21 23:38:42 +08:00
.hgtags merge 2016.74 2016-07-21 23:38:42 +08:00
.travis.yml Avoid osx "install" race 2016-04-12 21:22:21 +08:00
agentfwd.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
algo.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
atomicio.c
atomicio.h
auth.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
bignum.c
bignum.h
buffer.c additional length checks 2016-07-11 23:34:18 +08:00
buffer.h
CHANGES mention regression release 2016-07-21 23:16:57 +08:00
channel.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
chansession.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
circbuffer.c
circbuffer.h
cli-agentfwd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-auth.c message about truncated banner 2016-05-04 15:28:33 +02:00
cli-authinteract.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-authpasswd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-authpubkey.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-channel.c
cli-chansession.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-kex.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-main.c merge 2016.74 2016-07-21 23:38:42 +08:00
cli-runopts.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-session.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
cli-tcpfwd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
common-algo.c merge 2016.74 2016-07-21 23:38:42 +08:00
common-channel.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
common-chansession.c
common-kex.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
common-runopts.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
common-session.c merge 2016.74 2016-07-21 23:38:42 +08:00
compat.c
compat.h
config.guess
config.sub
configure.ac
crypto_desc.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
crypto_desc.h
curve25519-donna.c
dbclient.1
dbhelpers.c
dbhelpers.h
dbmulti.c
dbrandom.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
dbrandom.h
dbutil.c ses.debug_trace is wrong 2016-09-01 23:08:56 +08:00
dbutil.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
debug.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
default_options.h Add generated header default_options.h to version control. 2016-05-04 17:59:34 +02:00
default_options.h.in Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
dh_groups.c
dh_groups.h
dropbear.8 Add manpage and log for forced_command 2016-04-12 21:05:40 +08:00
dropbearconvert.1
dropbearconvert.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
dropbearkey.1
dropbearkey.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
dss.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
dss.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
ecc.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
ecc.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
ecdsa.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
ecdsa.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
fake-rfc2553.c
fake-rfc2553.h
filelist.txt
gendss.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
gendss.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
genrsa.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
genrsa.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
gensignkey.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
gensignkey.h
ifndef_wrapper.sh Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
includes.h
INSTALL
install-sh
kex.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
keyimport.c merge 2016.74 2016-07-21 23:38:42 +08:00
keyimport.h
LICENSE
list.c
list.h
listener.c
listener.h
loginrec.c
loginrec.h
ltc_prng.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
ltc_prng.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
Makefile.in Add generated header default_options.h to version control. 2016-05-04 17:59:34 +02:00
MULTI
netio.c make sure socket is of the right domain 2016-06-19 20:38:38 +08:00
netio.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
options.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
packet.c
packet.h
process-packet.c
progressmeter.c
progressmeter.h
queue.c
queue.h
README
release.sh
rsa.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
rsa.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
runopts.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
scp.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
scpmisc.c
scpmisc.h
service.h
session.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
signkey.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
signkey.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
SMALL
ssh.h
sshpty.c
sshpty.h
svr-agentfwd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-auth.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-authpam.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-authpasswd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-authpubkey.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-authpubkeyoptions.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-chansession.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-kex.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-main.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-runopts.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-service.c
svr-session.c merge 2016.74 2016-07-21 23:38:42 +08:00
svr-tcpfwd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
svr-x11fwd.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
sysoptions.h merge 2016.74 2016-07-21 23:38:42 +08:00
tcp-accept.c Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00
tcpfwd.h
termcodes.c
termcodes.h
TODO
x11fwd.h Convert #ifdef to #if, other build changes 2016-05-04 15:33:40 +02:00

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.

See TODO for a few of the things I know need looking at, and please contact
me if you have any questions/bugs found/features/ideas/comments etc :)

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 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

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.