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.