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

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.