Folus Wen 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
..
.github 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
debian 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fuzz 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
libtomcrypt 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
libtommath 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
release 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
test 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
.gitignore 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
.hgignore 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
.hgsigs 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
.hgtags 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
CHANGES 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
DEVELOPING.md 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
FUZZER-NOTES.md 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
INSTALL 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
LICENSE 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
MULTI 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
Makefile.in 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
README 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
SMALL 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
agentfwd.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
algo.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
atomicio.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
atomicio.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
auth.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
bignum.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
bignum.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
buffer.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
buffer.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
chachapoly.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
chachapoly.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
channel.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
chansession.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
circbuffer.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
circbuffer.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-agentfwd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-auth.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-authinteract.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-authpasswd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-authpubkey.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-channel.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-chansession.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-kex.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-main.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-runopts.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-session.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
cli-tcpfwd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-algo.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-channel.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-chansession.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-kex.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-runopts.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
common-session.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
compat.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
compat.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
config.guess 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
config.h.in 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
config.sub 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
configure 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
configure.ac 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
crypto_desc.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
crypto_desc.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
curve25519.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
curve25519.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbclient.1 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbhelpers.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbhelpers.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbmalloc.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbmalloc.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbmulti.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbrandom.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbrandom.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbutil.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dbutil.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
debug.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
default_options.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dh_groups.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dh_groups.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbear.8 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbear_lint.sh 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbearconvert.1 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbearconvert.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbearkey.1 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dropbearkey.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dss.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
dss.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ecc.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ecc.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ecdsa.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ecdsa.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ed25519.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ed25519.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fake-rfc2553.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fake-rfc2553.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
filelist.txt 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fuzz-wrapfd.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fuzz.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
fuzzers_test.sh 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gcm.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gcm.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gendss.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gendss.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gened25519.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gened25519.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
genrsa.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
genrsa.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gensignkey.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
gensignkey.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ifndef_wrapper.sh 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
includes.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
install-sh 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
kex.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
keyimport.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
keyimport.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
list.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
list.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
listener.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
listener.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
loginrec.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
loginrec.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ltc_prng.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ltc_prng.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
netio.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
netio.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
options.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
packet.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
packet.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
process-packet.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
progressmeter.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
progressmeter.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
pubkeyapi.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
queue.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
queue.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
release.sh 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
rsa.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
rsa.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
runopts.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
scp.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
scpmisc.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
scpmisc.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
service.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
session.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
signkey.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
signkey.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
signkey_ossh.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
signkey_ossh.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sk-ecdsa.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sk-ecdsa.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sk-ed25519.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sk-ed25519.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
ssh.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sshpty.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sshpty.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-agentfwd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-auth.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-authpam.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-authpasswd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-authpubkey.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-authpubkeyoptions.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-chansession.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-kex.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-main.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-runopts.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-service.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-session.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-tcpfwd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
svr-x11fwd.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
sysoptions.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
tcp-accept.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
tcpfwd.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
termcodes.c 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
termcodes.h 3c1544b7f9 [Improve][GPL][Dropbear] 2 年 前
x11fwd.h 3c1544b7f9 [Improve][GPL][Dropbear] 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.

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

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.