1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/dropbear-0.52
2024-07-22 01:58:46 -03:00
..
_MTN Add gpl 2024-07-22 01:58:46 -03:00
debian Add gpl 2024-07-22 01:58:46 -03:00
libtomcrypt Add gpl 2024-07-22 01:58:46 -03:00
libtommath Add gpl 2024-07-22 01:58:46 -03:00
agentfwd.h Add gpl 2024-07-22 01:58:46 -03:00
algo.h Add gpl 2024-07-22 01:58:46 -03:00
atomicio.c Add gpl 2024-07-22 01:58:46 -03:00
atomicio.h Add gpl 2024-07-22 01:58:46 -03:00
auth.h Add gpl 2024-07-22 01:58:46 -03:00
bignum.c Add gpl 2024-07-22 01:58:46 -03:00
bignum.h Add gpl 2024-07-22 01:58:46 -03:00
buffer.c Add gpl 2024-07-22 01:58:46 -03:00
buffer.h Add gpl 2024-07-22 01:58:46 -03:00
CHANGES Add gpl 2024-07-22 01:58:46 -03:00
channel.h Add gpl 2024-07-22 01:58:46 -03:00
chansession.h Add gpl 2024-07-22 01:58:46 -03:00
circbuffer.c Add gpl 2024-07-22 01:58:46 -03:00
circbuffer.h Add gpl 2024-07-22 01:58:46 -03:00
cli-algo.c Add gpl 2024-07-22 01:58:46 -03:00
cli-auth.c Add gpl 2024-07-22 01:58:46 -03:00
cli-authinteract.c Add gpl 2024-07-22 01:58:46 -03:00
cli-authpasswd.c Add gpl 2024-07-22 01:58:46 -03:00
cli-authpubkey.c Add gpl 2024-07-22 01:58:46 -03:00
cli-channel.c Add gpl 2024-07-22 01:58:46 -03:00
cli-chansession.c Add gpl 2024-07-22 01:58:46 -03:00
cli-kex.c Add gpl 2024-07-22 01:58:46 -03:00
cli-main.c Add gpl 2024-07-22 01:58:46 -03:00
cli-runopts.c Add gpl 2024-07-22 01:58:46 -03:00
cli-service.c Add gpl 2024-07-22 01:58:46 -03:00
cli-session.c Add gpl 2024-07-22 01:58:46 -03:00
cli-tcpfwd.c Add gpl 2024-07-22 01:58:46 -03:00
common-algo.c Add gpl 2024-07-22 01:58:46 -03:00
common-channel.c Add gpl 2024-07-22 01:58:46 -03:00
common-chansession.c Add gpl 2024-07-22 01:58:46 -03:00
common-kex.c Add gpl 2024-07-22 01:58:46 -03:00
common-runopts.c Add gpl 2024-07-22 01:58:46 -03:00
common-session.c Add gpl 2024-07-22 01:58:46 -03:00
compat.c Add gpl 2024-07-22 01:58:46 -03:00
compat.h Add gpl 2024-07-22 01:58:46 -03:00
config.guess Add gpl 2024-07-22 01:58:46 -03:00
config.h Add gpl 2024-07-22 01:58:46 -03:00
config.h.in Add gpl 2024-07-22 01:58:46 -03:00
config.sub Add gpl 2024-07-22 01:58:46 -03:00
configure Add gpl 2024-07-22 01:58:46 -03:00
configure.in Add gpl 2024-07-22 01:58:46 -03:00
dbclient.1 Add gpl 2024-07-22 01:58:46 -03:00
dbmulti.c Add gpl 2024-07-22 01:58:46 -03:00
dbutil.c Add gpl 2024-07-22 01:58:46 -03:00
dbutil.h Add gpl 2024-07-22 01:58:46 -03:00
debug.h Add gpl 2024-07-22 01:58:46 -03:00
dropbear.8 Add gpl 2024-07-22 01:58:46 -03:00
dropbearconvert.c Add gpl 2024-07-22 01:58:46 -03:00
dropbearkey.8 Add gpl 2024-07-22 01:58:46 -03:00
dropbearkey.c Add gpl 2024-07-22 01:58:46 -03:00
dss.c Add gpl 2024-07-22 01:58:46 -03:00
dss.h Add gpl 2024-07-22 01:58:46 -03:00
fake-rfc2553.c Add gpl 2024-07-22 01:58:46 -03:00
fake-rfc2553.h Add gpl 2024-07-22 01:58:46 -03:00
filelist.txt Add gpl 2024-07-22 01:58:46 -03:00
gendss.c Add gpl 2024-07-22 01:58:46 -03:00
gendss.h Add gpl 2024-07-22 01:58:46 -03:00
genrsa.c Add gpl 2024-07-22 01:58:46 -03:00
genrsa.h Add gpl 2024-07-22 01:58:46 -03:00
includes.h Add gpl 2024-07-22 01:58:46 -03:00
INSTALL Add gpl 2024-07-22 01:58:46 -03:00
install-sh Add gpl 2024-07-22 01:58:46 -03:00
kex.h Add gpl 2024-07-22 01:58:46 -03:00
keyimport.c Add gpl 2024-07-22 01:58:46 -03:00
keyimport.h Add gpl 2024-07-22 01:58:46 -03:00
LICENSE Add gpl 2024-07-22 01:58:46 -03:00
listener.c Add gpl 2024-07-22 01:58:46 -03:00
listener.h Add gpl 2024-07-22 01:58:46 -03:00
loginrec.c Add gpl 2024-07-22 01:58:46 -03:00
loginrec.h Add gpl 2024-07-22 01:58:46 -03:00
Makefile Add gpl 2024-07-22 01:58:46 -03:00
Makefile.in Add gpl 2024-07-22 01:58:46 -03:00
MULTI Add gpl 2024-07-22 01:58:46 -03:00
options.h Add gpl 2024-07-22 01:58:46 -03:00
packet.c Add gpl 2024-07-22 01:58:46 -03:00
packet.h Add gpl 2024-07-22 01:58:46 -03:00
process-packet.c Add gpl 2024-07-22 01:58:46 -03:00
progressmeter.c Add gpl 2024-07-22 01:58:46 -03:00
progressmeter.h Add gpl 2024-07-22 01:58:46 -03:00
queue.c Add gpl 2024-07-22 01:58:46 -03:00
queue.h Add gpl 2024-07-22 01:58:46 -03:00
random.c Add gpl 2024-07-22 01:58:46 -03:00
random.h Add gpl 2024-07-22 01:58:46 -03:00
README Add gpl 2024-07-22 01:58:46 -03:00
rsa.c Add gpl 2024-07-22 01:58:46 -03:00
rsa.h Add gpl 2024-07-22 01:58:46 -03:00
runopts.h Add gpl 2024-07-22 01:58:46 -03:00
scp.c Add gpl 2024-07-22 01:58:46 -03:00
scpmisc.c Add gpl 2024-07-22 01:58:46 -03:00
scpmisc.h Add gpl 2024-07-22 01:58:46 -03:00
service.h Add gpl 2024-07-22 01:58:46 -03:00
session.h Add gpl 2024-07-22 01:58:46 -03:00
signkey.c Add gpl 2024-07-22 01:58:46 -03:00
signkey.h Add gpl 2024-07-22 01:58:46 -03:00
SMALL Add gpl 2024-07-22 01:58:46 -03:00
ssh.h Add gpl 2024-07-22 01:58:46 -03:00
sshpty.c Add gpl 2024-07-22 01:58:46 -03:00
sshpty.h Add gpl 2024-07-22 01:58:46 -03:00
svr-agentfwd.c Add gpl 2024-07-22 01:58:46 -03:00
svr-algo.c Add gpl 2024-07-22 01:58:46 -03:00
svr-auth.c Add gpl 2024-07-22 01:58:46 -03:00
svr-authpam.c Add gpl 2024-07-22 01:58:46 -03:00
svr-authpasswd.c Add gpl 2024-07-22 01:58:46 -03:00
svr-authpubkey.c Add gpl 2024-07-22 01:58:46 -03:00
svr-authpubkeyoptions.c Add gpl 2024-07-22 01:58:46 -03:00
svr-chansession.c Add gpl 2024-07-22 01:58:46 -03:00
svr-kex.c Add gpl 2024-07-22 01:58:46 -03:00
svr-main.c Add gpl 2024-07-22 01:58:46 -03:00
svr-runopts.c Add gpl 2024-07-22 01:58:46 -03:00
svr-service.c Add gpl 2024-07-22 01:58:46 -03:00
svr-session.c Add gpl 2024-07-22 01:58:46 -03:00
svr-tcpfwd.c Add gpl 2024-07-22 01:58:46 -03:00
svr-x11fwd.c Add gpl 2024-07-22 01:58:46 -03:00
sysoptions.h Add gpl 2024-07-22 01:58:46 -03:00
tcp-accept.c Add gpl 2024-07-22 01:58:46 -03:00
tcpfwd.h Add gpl 2024-07-22 01:58:46 -03:00
termcodes.c Add gpl 2024-07-22 01:58:46 -03:00
termcodes.h Add gpl 2024-07-22 01:58:46 -03:00
TODO Add gpl 2024-07-22 01:58:46 -03:00
x11fwd.h Add gpl 2024-07-22 01:58:46 -03:00

This is Dropbear, a smallish SSH 2 server and client.

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.

NOTE: Dropbear ignores authorized_keys options such as those described in the
OpenSSH sshd manpage, and will not allow a login for these keys. 

============================================================================

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 <hostname>

Currently encrypted keys aren't supported, neither is agent forwarding. At some
stage both hopefully will be.

============================================================================

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

or alternatively convert OpenSSH keys to Dropbear:
./dropbearconvert openssh dropbear /etc/ssh/ssh_host_dsa_key dropbear_dss_host_key

============================================================================

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.