8053 beefd0184a 2022-08-08 ct_chen 2 年之前
..
debian beefd0184a 2022-08-08 ct_chen 2 年之前
libtomcrypt beefd0184a 2022-08-08 ct_chen 2 年之前
libtommath beefd0184a 2022-08-08 ct_chen 2 年之前
release beefd0184a 2022-08-08 ct_chen 2 年之前
.hg_archival.txt beefd0184a 2022-08-08 ct_chen 2 年之前
.hgsigs beefd0184a 2022-08-08 ct_chen 2 年之前
.travis.yml beefd0184a 2022-08-08 ct_chen 2 年之前
CHANGES beefd0184a 2022-08-08 ct_chen 2 年之前
INSTALL beefd0184a 2022-08-08 ct_chen 2 年之前
LICENSE beefd0184a 2022-08-08 ct_chen 2 年之前
MULTI beefd0184a 2022-08-08 ct_chen 2 年之前
Makefile beefd0184a 2022-08-08 ct_chen 2 年之前
Makefile.in beefd0184a 2022-08-08 ct_chen 2 年之前
README beefd0184a 2022-08-08 ct_chen 2 年之前
SMALL beefd0184a 2022-08-08 ct_chen 2 年之前
TODO beefd0184a 2022-08-08 ct_chen 2 年之前
agentfwd.h beefd0184a 2022-08-08 ct_chen 2 年之前
algo.h beefd0184a 2022-08-08 ct_chen 2 年之前
atomicio.c beefd0184a 2022-08-08 ct_chen 2 年之前
atomicio.h beefd0184a 2022-08-08 ct_chen 2 年之前
auth.h beefd0184a 2022-08-08 ct_chen 2 年之前
bignum.c beefd0184a 2022-08-08 ct_chen 2 年之前
bignum.h beefd0184a 2022-08-08 ct_chen 2 年之前
buffer.c beefd0184a 2022-08-08 ct_chen 2 年之前
buffer.h beefd0184a 2022-08-08 ct_chen 2 年之前
channel.h beefd0184a 2022-08-08 ct_chen 2 年之前
chansession.h beefd0184a 2022-08-08 ct_chen 2 年之前
circbuffer.c beefd0184a 2022-08-08 ct_chen 2 年之前
circbuffer.h beefd0184a 2022-08-08 ct_chen 2 年之前
cli-agentfwd.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-auth.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-authinteract.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-authpasswd.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-authpubkey.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-channel.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-chansession.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-kex.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-main.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-runopts.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-session.c beefd0184a 2022-08-08 ct_chen 2 年之前
cli-tcpfwd.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-algo.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-channel.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-chansession.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-kex.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-runopts.c beefd0184a 2022-08-08 ct_chen 2 年之前
common-session.c beefd0184a 2022-08-08 ct_chen 2 年之前
compat.c beefd0184a 2022-08-08 ct_chen 2 年之前
compat.h beefd0184a 2022-08-08 ct_chen 2 年之前
config.guess beefd0184a 2022-08-08 ct_chen 2 年之前
config.h beefd0184a 2022-08-08 ct_chen 2 年之前
config.h.in beefd0184a 2022-08-08 ct_chen 2 年之前
config.log beefd0184a 2022-08-08 ct_chen 2 年之前
config.status beefd0184a 2022-08-08 ct_chen 2 年之前
config.sub beefd0184a 2022-08-08 ct_chen 2 年之前
configure beefd0184a 2022-08-08 ct_chen 2 年之前
configure.ac beefd0184a 2022-08-08 ct_chen 2 年之前
crypto_desc.c beefd0184a 2022-08-08 ct_chen 2 年之前
crypto_desc.h beefd0184a 2022-08-08 ct_chen 2 年之前
curve25519-donna.c beefd0184a 2022-08-08 ct_chen 2 年之前
dbclient beefd0184a 2022-08-08 ct_chen 2 年之前
dbclient.1 beefd0184a 2022-08-08 ct_chen 2 年之前
dbhelpers.c beefd0184a 2022-08-08 ct_chen 2 年之前
dbhelpers.h beefd0184a 2022-08-08 ct_chen 2 年之前
dbmulti.c beefd0184a 2022-08-08 ct_chen 2 年之前
dbrandom.c beefd0184a 2022-08-08 ct_chen 2 年之前
dbrandom.h beefd0184a 2022-08-08 ct_chen 2 年之前
dbutil.c beefd0184a 2022-08-08 ct_chen 2 年之前
dbutil.h beefd0184a 2022-08-08 ct_chen 2 年之前
debug.h beefd0184a 2022-08-08 ct_chen 2 年之前
dh_groups.c beefd0184a 2022-08-08 ct_chen 2 年之前
dh_groups.h beefd0184a 2022-08-08 ct_chen 2 年之前
dropbear beefd0184a 2022-08-08 ct_chen 2 年之前
dropbear.8 beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearconvert beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearconvert.1 beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearconvert.c beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearkey beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearkey.1 beefd0184a 2022-08-08 ct_chen 2 年之前
dropbearkey.c beefd0184a 2022-08-08 ct_chen 2 年之前
dss.c beefd0184a 2022-08-08 ct_chen 2 年之前
dss.h beefd0184a 2022-08-08 ct_chen 2 年之前
ecc.c beefd0184a 2022-08-08 ct_chen 2 年之前
ecc.h beefd0184a 2022-08-08 ct_chen 2 年之前
ecdsa.c beefd0184a 2022-08-08 ct_chen 2 年之前
ecdsa.h beefd0184a 2022-08-08 ct_chen 2 年之前
fake-rfc2553.c beefd0184a 2022-08-08 ct_chen 2 年之前
fake-rfc2553.h beefd0184a 2022-08-08 ct_chen 2 年之前
filelist.txt beefd0184a 2022-08-08 ct_chen 2 年之前
gendss.c beefd0184a 2022-08-08 ct_chen 2 年之前
gendss.h beefd0184a 2022-08-08 ct_chen 2 年之前
genrsa.c beefd0184a 2022-08-08 ct_chen 2 年之前
genrsa.h beefd0184a 2022-08-08 ct_chen 2 年之前
gensignkey.c beefd0184a 2022-08-08 ct_chen 2 年之前
gensignkey.h beefd0184a 2022-08-08 ct_chen 2 年之前
includes.h beefd0184a 2022-08-08 ct_chen 2 年之前
install-sh beefd0184a 2022-08-08 ct_chen 2 年之前
kex.h beefd0184a 2022-08-08 ct_chen 2 年之前
keyimport.c beefd0184a 2022-08-08 ct_chen 2 年之前
keyimport.h beefd0184a 2022-08-08 ct_chen 2 年之前
list.c beefd0184a 2022-08-08 ct_chen 2 年之前
list.h beefd0184a 2022-08-08 ct_chen 2 年之前
listener.c beefd0184a 2022-08-08 ct_chen 2 年之前
listener.h beefd0184a 2022-08-08 ct_chen 2 年之前
loginrec.c beefd0184a 2022-08-08 ct_chen 2 年之前
loginrec.h beefd0184a 2022-08-08 ct_chen 2 年之前
ltc_prng.c beefd0184a 2022-08-08 ct_chen 2 年之前
ltc_prng.h beefd0184a 2022-08-08 ct_chen 2 年之前
netio.c beefd0184a 2022-08-08 ct_chen 2 年之前
netio.h beefd0184a 2022-08-08 ct_chen 2 年之前
options.h beefd0184a 2022-08-08 ct_chen 2 年之前
packet.c beefd0184a 2022-08-08 ct_chen 2 年之前
packet.h beefd0184a 2022-08-08 ct_chen 2 年之前
process-packet.c beefd0184a 2022-08-08 ct_chen 2 年之前
progressmeter.c beefd0184a 2022-08-08 ct_chen 2 年之前
progressmeter.h beefd0184a 2022-08-08 ct_chen 2 年之前
queue.c beefd0184a 2022-08-08 ct_chen 2 年之前
queue.h beefd0184a 2022-08-08 ct_chen 2 年之前
release.sh beefd0184a 2022-08-08 ct_chen 2 年之前
rsa.c beefd0184a 2022-08-08 ct_chen 2 年之前
rsa.h beefd0184a 2022-08-08 ct_chen 2 年之前
runopts.h beefd0184a 2022-08-08 ct_chen 2 年之前
scp beefd0184a 2022-08-08 ct_chen 2 年之前
scp.c beefd0184a 2022-08-08 ct_chen 2 年之前
scpmisc.c beefd0184a 2022-08-08 ct_chen 2 年之前
scpmisc.h beefd0184a 2022-08-08 ct_chen 2 年之前
service.h beefd0184a 2022-08-08 ct_chen 2 年之前
session.h beefd0184a 2022-08-08 ct_chen 2 年之前
signkey.c beefd0184a 2022-08-08 ct_chen 2 年之前
signkey.h beefd0184a 2022-08-08 ct_chen 2 年之前
ssh.h beefd0184a 2022-08-08 ct_chen 2 年之前
sshpty.c beefd0184a 2022-08-08 ct_chen 2 年之前
sshpty.h beefd0184a 2022-08-08 ct_chen 2 年之前
svr-agentfwd.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-auth.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-authpam.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-authpasswd.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-authpubkey.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-authpubkeyoptions.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-chansession.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-kex.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-main.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-runopts.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-service.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-session.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-tcpfwd.c beefd0184a 2022-08-08 ct_chen 2 年之前
svr-x11fwd.c beefd0184a 2022-08-08 ct_chen 2 年之前
sysoptions.h beefd0184a 2022-08-08 ct_chen 2 年之前
tcp-accept.c beefd0184a 2022-08-08 ct_chen 2 年之前
tcpfwd.h beefd0184a 2022-08-08 ct_chen 2 年之前
termcodes.c beefd0184a 2022-08-08 ct_chen 2 年之前
termcodes.h beefd0184a 2022-08-08 ct_chen 2 年之前
x11fwd.h beefd0184a 2022-08-08 ct_chen 2 年之前

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.

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

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.