|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| debian/ | | 03-May-2024 | - | 790 | 596 |
| libtomcrypt/ | | 03-May-2024 | - | 77,387 | 55,616 |
| libtommath/ | | 03-May-2024 | - | 31,804 | 18,162 |
| Android.mk | D | 03-May-2024 | 1.5 KiB | 55 | 36 |
| CHANGES | D | 03-May-2024 | 21.1 KiB | 602 | 386 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 50 | 0 |
| INSTALL | D | 03-May-2024 | 3.2 KiB | 80 | 53 |
| LICENSE | D | 03-May-2024 | 3.5 KiB | 90 | 67 |
| MODULE_LICENSE_BSD_LIKE | D | 03-May-2024 | 0 | | |
| MULTI | D | 03-May-2024 | 766 | 27 | 18 |
| Makefile.in | D | 03-May-2024 | 5.8 KiB | 212 | 139 |
| NOTICE | D | 03-May-2024 | 3.5 KiB | 90 | 67 |
| README | D | 03-May-2024 | 3 KiB | 75 | 47 |
| SMALL | D | 03-May-2024 | 2 KiB | 54 | 36 |
| TODO | D | 03-May-2024 | 623 | 28 | 16 |
| agentfwd.h | D | 03-May-2024 | 1.6 KiB | 44 | 16 |
| algo.h | D | 03-May-2024 | 2.4 KiB | 75 | 36 |
| atomicio.c | D | 03-May-2024 | 2 KiB | 64 | 29 |
| atomicio.h | D | 03-May-2024 | 1.6 KiB | 37 | 2 |
| auth.h | D | 03-May-2024 | 3.6 KiB | 112 | 54 |
| bignum.c | D | 03-May-2024 | 2.4 KiB | 76 | 35 |
| bignum.h | D | 03-May-2024 | 1.4 KiB | 36 | 8 |
| buffer.c | D | 03-May-2024 | 8.4 KiB | 339 | 194 |
| buffer.h | D | 03-May-2024 | 2.5 KiB | 67 | 34 |
| channel.h | D | 03-May-2024 | 4.5 KiB | 137 | 77 |
| chansession.h | D | 03-May-2024 | 2.3 KiB | 93 | 49 |
| circbuffer.c | D | 03-May-2024 | 3.6 KiB | 139 | 80 |
| circbuffer.h | D | 03-May-2024 | 2 KiB | 51 | 21 |
| cli-algo.c | D | 03-May-2024 | 2.9 KiB | 100 | 50 |
| cli-auth.c | D | 03-May-2024 | 7.5 KiB | 296 | 191 |
| cli-authinteract.c | D | 03-May-2024 | 4.3 KiB | 170 | 99 |
| cli-authpasswd.c | D | 03-May-2024 | 3.8 KiB | 154 | 97 |
| cli-authpubkey.c | D | 03-May-2024 | 5.6 KiB | 189 | 109 |
| cli-channel.c | D | 03-May-2024 | 2 KiB | 60 | 25 |
| cli-chansession.c | D | 03-May-2024 | 9.1 KiB | 382 | 242 |
| cli-kex.c | D | 03-May-2024 | 8.8 KiB | 331 | 232 |
| cli-main.c | D | 03-May-2024 | 3.3 KiB | 117 | 62 |
| cli-runopts.c | D | 03-May-2024 | 10.3 KiB | 434 | 321 |
| cli-service.c | D | 03-May-2024 | 2.7 KiB | 86 | 41 |
| cli-session.c | D | 03-May-2024 | 8.8 KiB | 323 | 185 |
| cli-tcpfwd.c | D | 03-May-2024 | 5.3 KiB | 217 | 145 |
| common-algo.c | D | 03-May-2024 | 6.1 KiB | 231 | 158 |
| common-channel.c | D | 03-May-2024 | 27.9 KiB | 1,031 | 656 |
| common-chansession.c | D | 03-May-2024 | 1.5 KiB | 44 | 17 |
| common-kex.c | D | 03-May-2024 | 21.6 KiB | 721 | 436 |
| common-runopts.c | D | 03-May-2024 | 1.8 KiB | 58 | 24 |
| common-session.c | D | 03-May-2024 | 9.2 KiB | 385 | 231 |
| compat.c | D | 03-May-2024 | 8.1 KiB | 282 | 150 |
| compat.h | D | 03-May-2024 | 1.7 KiB | 57 | 24 |
| config.guess | D | 03-May-2024 | 43.5 KiB | 1,514 | 1,302 |
| config.h | D | 03-May-2024 | 10.9 KiB | 414 | 94 |
| config.h.in | D | 03-May-2024 | 10.3 KiB | 413 | 275 |
| config.sub | D | 03-May-2024 | 31.9 KiB | 1,623 | 1,479 |
| configure | D | 03-May-2024 | 420.5 KiB | 15,133 | 12,969 |
| configure.in | D | 03-May-2024 | 17.7 KiB | 669 | 606 |
| dbclient.1 | D | 03-May-2024 | 1.8 KiB | 85 | 84 |
| dbmulti.c | D | 03-May-2024 | 2.7 KiB | 91 | 57 |
| dbutil.c | D | 03-May-2024 | 17 KiB | 702 | 452 |
| dbutil.h | D | 03-May-2024 | 2.8 KiB | 75 | 39 |
| debug.h | D | 03-May-2024 | 2.9 KiB | 77 | 10 |
| dropbear.8 | D | 03-May-2024 | 1.9 KiB | 93 | 92 |
| dropbearconvert.c | D | 03-May-2024 | 3.9 KiB | 150 | 97 |
| dropbearkey.8 | D | 03-May-2024 | 822 | 48 | 47 |
| dropbearkey.c | D | 03-May-2024 | 8.4 KiB | 371 | 261 |
| dss.c | D | 03-May-2024 | 11 KiB | 422 | 263 |
| dss.h | D | 03-May-2024 | 1.9 KiB | 62 | 27 |
| fake-rfc2553.c | D | 03-May-2024 | 6 KiB | 228 | 155 |
| fake-rfc2553.h | D | 03-May-2024 | 4.9 KiB | 163 | 96 |
| filelist.txt | D | 03-May-2024 | 3.1 KiB | 118 | 68 |
| gendss.c | D | 03-May-2024 | 4.7 KiB | 199 | 118 |
| gendss.h | D | 03-May-2024 | 1.3 KiB | 37 | 7 |
| genrsa.c | D | 03-May-2024 | 3.9 KiB | 138 | 75 |
| genrsa.h | D | 03-May-2024 | 1.3 KiB | 37 | 7 |
| includes.h | D | 03-May-2024 | 3.3 KiB | 150 | 96 |
| install-sh | D | 03-May-2024 | 5.5 KiB | 252 | 153 |
| kex.h | D | 03-May-2024 | 2.3 KiB | 65 | 28 |
| keyimport.c | D | 03-May-2024 | 42.8 KiB | 1,694 | 1,144 |
| keyimport.h | D | 03-May-2024 | 1.5 KiB | 43 | 14 |
| listener.c | D | 03-May-2024 | 4.3 KiB | 166 | 102 |
| listener.h | D | 03-May-2024 | 2.1 KiB | 64 | 24 |
| loginrec.c | D | 03-May-2024 | 33.8 KiB | 1,395 | 864 |
| loginrec.h | D | 03-May-2024 | 5.8 KiB | 186 | 96 |
| netbsd_getpass.c | D | 03-May-2024 | 3.3 KiB | 115 | 67 |
| options.h | D | 03-May-2024 | 13.7 KiB | 414 | 176 |
| packet.c | D | 03-May-2024 | 16.6 KiB | 610 | 392 |
| packet.h | D | 03-May-2024 | 1.5 KiB | 49 | 16 |
| process-packet.c | D | 03-May-2024 | 4 KiB | 145 | 70 |
| progressmeter.c | D | 03-May-2024 | 7.2 KiB | 295 | 212 |
| progressmeter.h | D | 03-May-2024 | 1.4 KiB | 28 | 2 |
| queue.c | D | 03-May-2024 | 2.2 KiB | 90 | 48 |
| queue.h | D | 03-May-2024 | 1.5 KiB | 50 | 17 |
| random.c | D | 03-May-2024 | 6.4 KiB | 241 | 144 |
| random.h | D | 03-May-2024 | 1.4 KiB | 37 | 9 |
| rsa.c | D | 03-May-2024 | 10.7 KiB | 425 | 256 |
| rsa.h | D | 03-May-2024 | 1.9 KiB | 62 | 27 |
| runopts.h | D | 03-May-2024 | 2.8 KiB | 125 | 66 |
| scp.c | D | 03-May-2024 | 28.2 KiB | 1,258 | 1,022 |
| scpmisc.c | D | 03-May-2024 | 5.6 KiB | 249 | 174 |
| scpmisc.h | D | 03-May-2024 | 2 KiB | 70 | 44 |
| service.h | D | 03-May-2024 | 1.4 KiB | 33 | 6 |
| session.h | D | 03-May-2024 | 7.8 KiB | 257 | 141 |
| signkey.c | D | 03-May-2024 | 12.1 KiB | 492 | 338 |
| signkey.h | D | 03-May-2024 | 2.3 KiB | 64 | 33 |
| ssh.h | D | 03-May-2024 | 4.3 KiB | 108 | 57 |
| sshpty.c | D | 03-May-2024 | 10.4 KiB | 413 | 313 |
| sshpty.h | D | 03-May-2024 | 1,006 | 29 | 8 |
| svr-agentfwd.c | D | 03-May-2024 | 6.5 KiB | 267 | 157 |
| svr-algo.c | D | 03-May-2024 | 3.1 KiB | 101 | 50 |
| svr-auth.c | D | 03-May-2024 | 10.7 KiB | 375 | 231 |
| svr-authpam.c | D | 03-May-2024 | 7.8 KiB | 259 | 149 |
| svr-authpasswd.c | D | 03-May-2024 | 3.2 KiB | 106 | 55 |
| svr-authpubkey.c | D | 03-May-2024 | 9.8 KiB | 348 | 215 |
| svr-chansession.c | D | 03-May-2024 | 26.6 KiB | 1,042 | 700 |
| svr-kex.c | D | 03-May-2024 | 3.3 KiB | 107 | 47 |
| svr-main.c | D | 03-May-2024 | 10.3 KiB | 424 | 275 |
| svr-runopts.c | D | 03-May-2024 | 8.6 KiB | 357 | 283 |
| svr-service.c | D | 03-May-2024 | 2.5 KiB | 88 | 40 |
| svr-session.c | D | 03-May-2024 | 5.6 KiB | 207 | 125 |
| svr-tcpfwd.c | D | 03-May-2024 | 7 KiB | 291 | 198 |
| svr-x11fwd.c | D | 03-May-2024 | 6.1 KiB | 237 | 143 |
| tcp-accept.c | D | 03-May-2024 | 4.2 KiB | 145 | 84 |
| tcpfwd.h | D | 03-May-2024 | 2.1 KiB | 70 | 24 |
| termcodes.c | D | 03-May-2024 | 4 KiB | 188 | 160 |
| termcodes.h | D | 03-May-2024 | 1.5 KiB | 47 | 15 |
| x11fwd.h | D | 03-May-2024 | 1.5 KiB | 38 | 11 |
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