Go to file
Matt Johnston 3dbc707820 - Add a date for the release
--HG--
extra : convert_revision : f2c4b1b1304914efad934b368d3f6e4e8d91de99
2008-11-12 13:13:00 +00:00
debian - Add a date for the release 2008-11-12 13:13:00 +00:00
libtomcrypt - Add Counter Mode support 2008-09-29 13:53:31 +00:00
libtommath fix missing endif 2007-01-11 06:03:09 +00:00
agentfwd.h Mostly done with the listener changeover 2004-06-03 17:22:48 +00:00
algo.h - Add Counter Mode support 2008-09-29 13:53:31 +00:00
atomicio.c atomicio.c: one less compile warning 2004-12-19 07:43:37 +00:00
atomicio.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
auth.h - Rework pubkey options to be more careful about buffer lengths. Needs review. 2008-09-12 17:23:56 +00:00
bignum.c - refactored random mp_int generation and byte->mp_int code 2005-05-05 03:58:21 +00:00
bignum.h - refactored random mp_int generation and byte->mp_int code 2005-05-05 03:58:21 +00:00
buffer.c * use own assertions which should get logged properly 2005-09-05 15:16:10 +00:00
buffer.h * fix longstanding bug with connections being closed on failure to 2005-03-13 13:58:14 +00:00
CHANGES - Add a date for the release 2008-11-12 13:13:00 +00:00
channel.h Rearrange the channel buffer sizes into three neat use-editable values in 2007-07-24 15:40:23 +00:00
chansession.h Rework netcat-alike to be a proper mode, with -B argument. 2008-09-17 14:36:49 +00:00
circbuffer.c * use own assertions which should get logged properly 2005-09-05 15:16:10 +00:00
circbuffer.h - added circular buffering for channels 2004-08-26 13:16:40 +00:00
cli-algo.c Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place 2005-01-02 20:25:56 +00:00
cli-auth.c Add support for zlib@openssh.com delayed compression. 2008-09-29 02:23:04 +00:00
cli-authinteract.c Print "Login for user@host" for keyboard interactive, since it probably 2008-09-18 16:01:02 +00:00
cli-authpasswd.c Add support for SSH_ASKPASS_ALWAYS env variable for dbclient. If it 2007-09-14 00:19:44 +00:00
cli-authpubkey.c Remove double-free due to the same "fix" for a leak getting merged in 2007-02-11 10:46:44 +00:00
cli-channel.c Rearranged some more bits, marked some areas that need work. 2006-10-02 16:34:06 +00:00
cli-chansession.c - Enable -s for specifying a subsystem (such as sftp) 2008-09-23 15:57:26 +00:00
cli-kex.c Remove a newline from the kex prompt question, from FreeWRT 2007-02-25 09:48:13 +00:00
cli-main.c Don't capture stderr from spawned processes in proxycommand mode 2008-09-17 14:35:36 +00:00
cli-runopts.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
cli-service.c Fixes from Erik Hovland: 2006-07-07 09:17:18 +00:00
cli-session.c Report errors if a remote request fails 2008-11-02 12:25:08 +00:00
cli-tcpfwd.c Report errors if a remote request fails 2008-11-02 12:25:08 +00:00
common-algo.c - Get rid of blowfish and twofish CTR since they weren't likely 2008-09-29 14:30:47 +00:00
common-channel.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
common-chansession.c Chantype handling is sorted 2004-06-02 04:59:49 +00:00
common-kex.c - Add Counter Mode support 2008-09-29 13:53:31 +00:00
common-runopts.c - client pubkey auth works 2004-08-06 16:18:01 +00:00
common-session.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
compat.c Small fixes 2004-08-17 10:40:31 +00:00
compat.h License boilerplate etc, add Mihnea as an author to some of the files 2004-08-14 17:54:20 +00:00
config.guess Update to latest 2007-02-02 10:11:31 +00:00
config.sub Update to latest 2007-02-02 10:11:31 +00:00
configure.in Fix to allow building from a separate directory, patch from Ricardo Martins 2007-10-18 12:18:44 +00:00
dbclient.1 - Bump to 0.52 2008-11-11 14:08:48 +00:00
dbmulti.c Add help text that a symlink to "ssh" works 2004-08-27 15:20:47 +00:00
dbutil.c Replace calls to strtoul() with a helper m_str_to_uint() 2008-09-22 14:13:44 +00:00
dbutil.h Replace calls to strtoul() with a helper m_str_to_uint() 2008-09-22 14:13:44 +00:00
debug.h - Bump to 0.52 2008-11-11 14:08:48 +00:00
dropbear.8 - Document idle_timeout 2008-11-11 13:51:55 +00:00
dropbearconvert.c DEBUG_TRACE now only triggers with -v on the cmdline 2004-08-18 15:48:25 +00:00
dropbearkey.8 Mention DSS and DSA being the same thing 2008-11-09 10:59:19 +00:00
dropbearkey.c Make dropbearkey only generate 1024 bit keys 2007-08-08 15:57:50 +00:00
dss.c merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f' 2006-12-06 13:11:41 +00:00
dss.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
fake-rfc2553.c fake-rfc stuff 2004-08-12 14:39:17 +00:00
fake-rfc2553.h fake-rfc stuff 2004-08-12 14:39:17 +00:00
filelist.txt filelist.txt 2004-08-14 18:06:28 +00:00
gendss.c - refactored random mp_int generation and byte->mp_int code 2005-05-05 03:58:21 +00:00
gendss.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
genrsa.c Remove workaround forcing rsa mpint to exactly a 8 bits multiple for putty (see 2008-09-12 17:48:33 +00:00
genrsa.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
includes.h - Add -K keepalive flag for dropbear and dbclient 2007-08-08 15:12:06 +00:00
INSTALL Fix spelling typo 2007-07-19 14:07:41 +00:00
install-sh Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
kex.h Add support for zlib@openssh.com delayed compression. 2008-09-29 02:23:04 +00:00
keyimport.c Remove an unused variable 2008-09-22 14:13:14 +00:00
keyimport.h License boilerplate etc, add Mihnea as an author to some of the files 2004-08-14 17:54:20 +00:00
LICENSE LICENSE - Update copyright to 2008 2008-11-05 13:53:14 +00:00
listener.c Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place 2005-01-02 20:25:56 +00:00
listener.h License boilerplate etc, add Mihnea as an author to some of the files 2004-08-14 17:54:20 +00:00
loginrec.c Give a umask argument to open() in loginrec 2008-11-05 13:14:38 +00:00
loginrec.h Cleaning out various dead wood found with -dead_strip 2004-12-20 14:24:57 +00:00
Makefile.in * Patch from Frédéric Moulins adding options to authorized_keys. 2008-09-08 15:14:02 +00:00
MULTI Some doc changes 2004-08-13 10:58:51 +00:00
options.h PAM shouldn't be on by default 2008-11-11 14:15:54 +00:00
packet.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
packet.h Prevent invalid packets being sent during key-exchange, instead queue 2007-07-27 17:13:42 +00:00
process-packet.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
progressmeter.c Update to scp from OpenSSH portable 4.3p2 2006-03-08 14:20:24 +00:00
progressmeter.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
queue.c * use own assertions which should get logged properly 2005-09-05 15:16:10 +00:00
queue.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
random.c Just use /dev/urandom since that's what everyone ends up using anyway. 2007-07-19 15:47:32 +00:00
random.h Just use /dev/urandom since that's what everyone ends up using anyway. 2007-07-19 15:47:32 +00:00
README Update to LibTomCrypt 1.16 2007-01-11 02:22:00 +00:00
rsa.c merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f' 2006-12-06 13:11:41 +00:00
rsa.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
runopts.h Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
scp.c - use vfork()/_exit() for uclinux 2008-11-02 13:34:02 +00:00
scpmisc.c Update to scp from OpenSSH portable 4.3p2 2006-03-08 14:20:24 +00:00
scpmisc.h put back the TIMEVAL_TO_TIMESPEC and timersub macros for Linux 2006-03-11 14:57:12 +00:00
service.h Client mostly works up to password auth 2004-07-28 16:44:16 +00:00
session.h Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
signkey.c Improve known_hosts checking. 2007-02-22 15:29:32 +00:00
signkey.h Improve known_hosts checking. 2007-02-22 15:29:32 +00:00
SMALL 0.44 release changes 2005-01-02 17:08:27 +00:00
ssh.h added keyboard-interactive client support 2005-09-20 17:35:21 +00:00
sshpty.c get rid of the substitution... We want a fixed identifier 2004-07-30 11:27:52 +00:00
sshpty.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
svr-agentfwd.c * Patch from Frédéric Moulins adding options to authorized_keys. 2008-09-08 15:14:02 +00:00
svr-algo.c Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place 2005-01-02 20:25:56 +00:00
svr-auth.c Add support for zlib@openssh.com delayed compression. 2008-09-29 02:23:04 +00:00
svr-authpam.c Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep 2008-01-13 03:55:59 +00:00
svr-authpasswd.c Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep 2008-01-13 03:55:59 +00:00
svr-authpubkey.c - Rework pubkey options to be more careful about buffer lengths. Needs review. 2008-09-12 17:23:56 +00:00
svr-authpubkeyoptions.c - Add Counter Mode support 2008-09-29 13:53:31 +00:00
svr-chansession.c - Set a default path, since bash won't export one otherwise (though it will set 2008-11-05 13:30:23 +00:00
svr-kex.c Fixes from Erik Hovland: 2006-07-07 09:17:18 +00:00
svr-main.c - Rework pubkey options to be more careful about buffer lengths. Needs review. 2008-09-12 17:23:56 +00:00
svr-runopts.c Idle timeout patch from Farrell Aultman. Needs testing, unsure if server 2008-11-07 14:11:06 +00:00
svr-service.c Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place 2005-01-02 20:25:56 +00:00
svr-session.c propagate from branch 'au.asn.ucc.matt.dropbear.pubkey-options' (head 537a6ebebb46424b967ffe787f0f8560e5f447e8) 2008-09-23 13:16:22 +00:00
svr-tcpfwd.c * Patch from Frédéric Moulins adding options to authorized_keys. 2008-09-08 15:14:02 +00:00
svr-x11fwd.c * Patch from Frédéric Moulins adding options to authorized_keys. 2008-09-08 15:14:02 +00:00
sysoptions.h - Bump to 0.52 2008-11-11 14:08:48 +00:00
tcp-accept.c Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness 2007-02-16 14:42:08 +00:00
tcpfwd.h Report errors if a remote request fails 2008-11-02 12:25:08 +00:00
termcodes.c #ifdef for PENDIN 2004-08-17 10:29:04 +00:00
termcodes.h Makefile.in contains updated files required 2004-06-01 02:46:09 +00:00
TODO Update to LibTomMath 0.40 2007-01-11 03:11:15 +00:00
x11fwd.h Fixed stupid agentfwd error (using the listening FD, not the accepted on. gah) 2004-06-03 18:08:34 +00:00

This is Dropbear, a smallish SSH 2 server and client.

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.

NOTE: Dropbear ignores authorized_keys options such as those described in the
OpenSSH sshd manpage, and will not allow a login for these keys. 

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

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>

Currently encrypted keys aren't supported, neither is agent forwarding. At some
stage both hopefully will be.

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

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

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

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

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.