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

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.