• Home
Name Date Size #Lines LOC

..--

debian/03-May-2024-790596

libtomcrypt/03-May-2024-77,38755,616

libtommath/03-May-2024-31,80418,162

Android.mkD03-May-20241.5 KiB5536

CHANGESD03-May-202421.1 KiB602386

CleanSpec.mkD03-May-20242.2 KiB500

INSTALLD03-May-20243.2 KiB8053

LICENSED03-May-20243.5 KiB9067

MODULE_LICENSE_BSD_LIKED03-May-20240

MULTID03-May-2024766 2718

Makefile.inD03-May-20245.8 KiB212139

NOTICED03-May-20243.5 KiB9067

READMED03-May-20243 KiB7547

SMALLD03-May-20242 KiB5436

TODOD03-May-2024623 2816

agentfwd.hD03-May-20241.6 KiB4416

algo.hD03-May-20242.4 KiB7536

atomicio.cD03-May-20242 KiB6429

atomicio.hD03-May-20241.6 KiB372

auth.hD03-May-20243.6 KiB11254

bignum.cD03-May-20242.4 KiB7635

bignum.hD03-May-20241.4 KiB368

buffer.cD03-May-20248.4 KiB339194

buffer.hD03-May-20242.5 KiB6734

channel.hD03-May-20244.5 KiB13777

chansession.hD03-May-20242.3 KiB9349

circbuffer.cD03-May-20243.6 KiB13980

circbuffer.hD03-May-20242 KiB5121

cli-algo.cD03-May-20242.9 KiB10050

cli-auth.cD03-May-20247.5 KiB296191

cli-authinteract.cD03-May-20244.3 KiB17099

cli-authpasswd.cD03-May-20243.8 KiB15497

cli-authpubkey.cD03-May-20245.6 KiB189109

cli-channel.cD03-May-20242 KiB6025

cli-chansession.cD03-May-20249.1 KiB382242

cli-kex.cD03-May-20248.8 KiB331232

cli-main.cD03-May-20243.3 KiB11762

cli-runopts.cD03-May-202410.3 KiB434321

cli-service.cD03-May-20242.7 KiB8641

cli-session.cD03-May-20248.8 KiB323185

cli-tcpfwd.cD03-May-20245.3 KiB217145

common-algo.cD03-May-20246.1 KiB231158

common-channel.cD03-May-202427.9 KiB1,031656

common-chansession.cD03-May-20241.5 KiB4417

common-kex.cD03-May-202421.6 KiB721436

common-runopts.cD03-May-20241.8 KiB5824

common-session.cD03-May-20249.2 KiB385231

compat.cD03-May-20248.1 KiB282150

compat.hD03-May-20241.7 KiB5724

config.guessD03-May-202443.5 KiB1,5141,302

config.hD03-May-202410.9 KiB41494

config.h.inD03-May-202410.3 KiB413275

config.subD03-May-202431.9 KiB1,6231,479

configureD03-May-2024420.5 KiB15,13312,969

configure.inD03-May-202417.7 KiB669606

dbclient.1D03-May-20241.8 KiB8584

dbmulti.cD03-May-20242.7 KiB9157

dbutil.cD03-May-202417 KiB702452

dbutil.hD03-May-20242.8 KiB7539

debug.hD03-May-20242.9 KiB7710

dropbear.8D03-May-20241.9 KiB9392

dropbearconvert.cD03-May-20243.9 KiB15097

dropbearkey.8D03-May-2024822 4847

dropbearkey.cD03-May-20248.4 KiB371261

dss.cD03-May-202411 KiB422263

dss.hD03-May-20241.9 KiB6227

fake-rfc2553.cD03-May-20246 KiB228155

fake-rfc2553.hD03-May-20244.9 KiB16396

filelist.txtD03-May-20243.1 KiB11868

gendss.cD03-May-20244.7 KiB199118

gendss.hD03-May-20241.3 KiB377

genrsa.cD03-May-20243.9 KiB13875

genrsa.hD03-May-20241.3 KiB377

includes.hD03-May-20243.3 KiB15096

install-shD03-May-20245.5 KiB252153

kex.hD03-May-20242.3 KiB6528

keyimport.cD03-May-202442.8 KiB1,6941,144

keyimport.hD03-May-20241.5 KiB4314

listener.cD03-May-20244.3 KiB166102

listener.hD03-May-20242.1 KiB6424

loginrec.cD03-May-202433.8 KiB1,395864

loginrec.hD03-May-20245.8 KiB18696

netbsd_getpass.cD03-May-20243.3 KiB11567

options.hD03-May-202413.7 KiB414176

packet.cD03-May-202416.6 KiB610392

packet.hD03-May-20241.5 KiB4916

process-packet.cD03-May-20244 KiB14570

progressmeter.cD03-May-20247.2 KiB295212

progressmeter.hD03-May-20241.4 KiB282

queue.cD03-May-20242.2 KiB9048

queue.hD03-May-20241.5 KiB5017

random.cD03-May-20246.4 KiB241144

random.hD03-May-20241.4 KiB379

rsa.cD03-May-202410.7 KiB425256

rsa.hD03-May-20241.9 KiB6227

runopts.hD03-May-20242.8 KiB12566

scp.cD03-May-202428.2 KiB1,2581,022

scpmisc.cD03-May-20245.6 KiB249174

scpmisc.hD03-May-20242 KiB7044

service.hD03-May-20241.4 KiB336

session.hD03-May-20247.8 KiB257141

signkey.cD03-May-202412.1 KiB492338

signkey.hD03-May-20242.3 KiB6433

ssh.hD03-May-20244.3 KiB10857

sshpty.cD03-May-202410.4 KiB413313

sshpty.hD03-May-20241,006 298

svr-agentfwd.cD03-May-20246.5 KiB267157

svr-algo.cD03-May-20243.1 KiB10150

svr-auth.cD03-May-202410.7 KiB375231

svr-authpam.cD03-May-20247.8 KiB259149

svr-authpasswd.cD03-May-20243.2 KiB10655

svr-authpubkey.cD03-May-20249.8 KiB348215

svr-chansession.cD03-May-202426.6 KiB1,042700

svr-kex.cD03-May-20243.3 KiB10747

svr-main.cD03-May-202410.3 KiB424275

svr-runopts.cD03-May-20248.6 KiB357283

svr-service.cD03-May-20242.5 KiB8840

svr-session.cD03-May-20245.6 KiB207125

svr-tcpfwd.cD03-May-20247 KiB291198

svr-x11fwd.cD03-May-20246.1 KiB237143

tcp-accept.cD03-May-20244.2 KiB14584

tcpfwd.hD03-May-20242.1 KiB7024

termcodes.cD03-May-20244 KiB188160

termcodes.hD03-May-20241.5 KiB4715

x11fwd.hD03-May-20241.5 KiB3811

README

1This is Dropbear, a smallish SSH 2 server and client.
2
3INSTALL has compilation instructions.
4
5MULTI has instructions on making a multi-purpose binary (ie a single binary
6which performs multiple tasks, to save disk space)
7
8SMALL has some tips on creating small binaries.
9
10See TODO for a few of the things I know need looking at, and please contact
11me if you have any questions/bugs found/features/ideas/comments etc :)
12
13Matt Johnston
14matt@ucc.asn.au
15
16
17In the absence of detailed documentation, some notes follow:
18============================================================================
19
20Server public key auth:
21
22You can use ~/.ssh/authorized_keys in the same way as with OpenSSH, just put
23the key entries in that file. They should be of the form:
24
25ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwVa6M6cGVmUcLl2cFzkxEoJd06Ub4bVDsYrWvXhvUV+ZAM9uGuewZBDoAqNKJxoIn0Hyd0Nk/yU99UVv6NWV/5YSHtnf35LKds56j7cuzoQpFIdjNwdxAN0PCET/MG8qyskG/2IE2DPNIaJ3Wy+Ws4IZEgdJgPlTYUBWWtCWOGc= someone@hostname
26
27You must make sure that ~/.ssh, and the key file, are only writable by the
28user. Beware of editors that split the key into multiple lines.
29
30NOTE: Dropbear ignores authorized_keys options such as those described in the
31OpenSSH sshd manpage, and will not allow a login for these keys.
32
33============================================================================
34
35Client public key auth:
36
37Dropbear can do public key auth as a client, but you will have to convert
38OpenSSH style keys to Dropbear format, or use dropbearkey to create them.
39
40If you have an OpenSSH-style private key ~/.ssh/id_rsa, you need to do:
41
42dropbearconvert openssh dropbear ~/.ssh/id_rsa  ~/.ssh/id_rsa.db
43dbclient -i ~/.ssh/id_rsa.db <hostname>
44
45Currently encrypted keys aren't supported, neither is agent forwarding. At some
46stage both hopefully will be.
47
48============================================================================
49
50If you want to get the public-key portion of a Dropbear private key, look at
51dropbearkey's '-y' option.
52
53============================================================================
54
55To run the server, you need to generate server keys, this is one-off:
56./dropbearkey -t rsa -f dropbear_rsa_host_key
57./dropbearkey -t dss -f dropbear_dss_host_key
58
59or alternatively convert OpenSSH keys to Dropbear:
60./dropbearconvert openssh dropbear /etc/ssh/ssh_host_dsa_key dropbear_dss_host_key
61
62============================================================================
63
64If the server is run as non-root, you most likely won't be able to allocate a
65pty, and you cannot login as any user other than that running the daemon
66(obviously). Shadow passwords will also be unusable as non-root.
67
68============================================================================
69
70The Dropbear distribution includes a standalone version of OpenSSH's scp
71program. You can compile it with "make scp", you may want to change the path
72of the ssh binary, specified by _PATH_SSH_PROGRAM in options.h . By default
73the progress meter isn't compiled in to save space, you can enable it by
74adding 'SCPPROGRESS=1' to the make commandline.
75