Go to file
Matt Johnston bb8234c2f1 Agent forwarding works
--HG--
branch : agent-client
extra : convert_revision : eb0dae4b62e243ba37a897beb7ba81a4f637d8b3
2009-07-30 15:14:33 +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 Agent forwarding works 2009-07-30 15:14:33 +00:00
algo.h - Add Counter Mode support 2008-09-29 13:53:31 +00:00
atomicio.c
atomicio.h
auth.h - Client auth using an agent's key works. Still need to implement client 2009-07-06 14:02:45 +00:00
bignum.c
bignum.h
buffer.c New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
buffer.h New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
CHANGES - Add a date for the release 2008-11-12 13:13:00 +00:00
channel.h Make it compile, update for changes in channel structure. 2009-07-01 04:53:17 +00:00
chansession.h Agent forwarding works 2009-07-30 15:14:33 +00:00
circbuffer.c
circbuffer.h
cli-agentfwd.c Agent forwarding works 2009-07-30 15:14:33 +00:00
cli-algo.c
cli-auth.c - Client auth using an agent's key works. Still need to implement client 2009-07-06 14:02:45 +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 Agent forwarding works 2009-07-30 15:14:33 +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 Agent forwarding works 2009-07-30 15:14:33 +00:00
cli-kex.c - Make -i and -W pass through multihop arguments 2009-06-12 14:58:43 +00:00
cli-main.c - Make -i and -W pass through multihop arguments 2009-06-12 14:58:43 +00:00
cli-runopts.c New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
cli-service.c
cli-session.c Agent forwarding works 2009-07-30 15:14:33 +00:00
cli-tcpfwd.c New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
common-algo.c - Don't memcpy() in place with void_encrypt 2009-06-09 13:18:52 +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
common-kex.c - Add option to change zlib windowBits/memLevel 2009-07-26 15:39:47 +00:00
common-runopts.c
common-session.c - Add the signal pipe to maxfd 2009-03-17 22:30:25 +00:00
compat.c
compat.h
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 Only use -lcrypt for Dropbear server binary 2008-11-17 14:04:14 +00:00
dbclient.1 Agent forwarding works 2009-07-30 15:14:33 +00:00
dbmulti.c
dbutil.c Talking to the agent works now. Can't interpret the pubkeys. 2009-07-01 06:27:27 +00:00
dbutil.h propagate from branch 'au.asn.ucc.matt.dropbear' (head 4fb35083f0f46ea667e7043e7d4314aecd3df46c) 2008-09-23 16:05:04 +00:00
debug.h Agent forwarding works 2009-07-30 15:14:33 +00:00
dropbear.8 - Document idle_timeout 2008-11-11 13:51:55 +00:00
dropbearconvert.c
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
fake-rfc2553.c
fake-rfc2553.h
filelist.txt
gendss.c
gendss.h
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
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
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 LICENSE - Update copyright to 2008 2008-11-05 13:53:14 +00:00
list.c New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
list.h New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
listener.c
listener.h
loginrec.c Give a umask argument to open() in loginrec 2008-11-05 13:14:38 +00:00
loginrec.h
Makefile.in New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
MULTI
options.h propagate from branch 'au.asn.ucc.matt.dropbear' (head bbe4e11695a7b22bd89a722600eb4a4020b6fdf3) 2009-07-29 02:58:33 +00:00
packet.c - Payload length doesn't include macsize. 2009-07-26 16:11:27 +00:00
packet.h - Get rid of decryptreadbuf, just decrypt in-place with readbuf 2009-03-01 16:15:57 +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
progressmeter.h
queue.c
queue.h
random.c propagate from branch 'au.asn.ucc.matt.dropbear' (head 8a7db1e2fdc5636abb338adb636babc32f465739) 2007-08-16 13:34:37 +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
runopts.h - Client auth using an agent's key works. Still need to implement client 2009-07-06 14:02:45 +00:00
scp.c - use vfork()/_exit() for uclinux 2008-11-02 13:34:02 +00:00
scpmisc.c
scpmisc.h
service.h
session.h propagate from branch 'au.asn.ucc.matt.dropbear' (head bbe4e11695a7b22bd89a722600eb4a4020b6fdf3) 2009-07-29 02:58:33 +00:00
signkey.c Agent forwarding works 2009-07-30 15:14:33 +00:00
signkey.h New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
SMALL
ssh.h
sshpty.c
sshpty.h
svr-agentfwd.c Agent forwarding works 2009-07-30 15:14:33 +00:00
svr-algo.c
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 Agent forwarding works 2009-07-30 15:14:33 +00:00
svr-kex.c
svr-main.c use memset() rather than bzero() 2009-06-08 14:40:29 +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
svr-session.c - For uclinux, only cleanup on exit for the main process. This avoids 2009-07-09 16:01:30 +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 Make it compile, update for changes in channel structure. 2009-07-01 04:53:17 +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 New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList 2009-07-06 12:59:13 +00:00
termcodes.c
termcodes.h
TODO Update to LibTomMath 0.40 2007-01-11 03:11:15 +00:00
x11fwd.h

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.