mirror of http://galexander.org/git/simplesshd.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Greg Alexander
41bdcb1b97
|
8 years ago | |
---|---|---|
.. | ||
debian | 10 years ago | |
libtomcrypt | 10 years ago | |
libtommath | 10 years ago | |
.hg_archival.txt | 10 years ago | |
.hgsigs | 10 years ago | |
.hgtags | 10 years ago | |
.travis.yml | 10 years ago | |
CHANGES | 10 years ago | |
INSTALL | 10 years ago | |
LICENSE | 10 years ago | |
MULTI | 10 years ago | |
Makefile.in | 10 years ago | |
README | 10 years ago | |
SMALL | 10 years ago | |
TODO | 10 years ago | |
agentfwd.h | 10 years ago | |
algo.h | 10 years ago | |
atomicio.c | 10 years ago | |
atomicio.h | 10 years ago | |
auth.h | 10 years ago | |
bignum.c | 10 years ago | |
bignum.h | 10 years ago | |
buffer.c | 10 years ago | |
buffer.h | 10 years ago | |
channel.h | 10 years ago | |
chansession.h | 10 years ago | |
circbuffer.c | 10 years ago | |
circbuffer.h | 10 years ago | |
cli-agentfwd.c | 10 years ago | |
cli-auth.c | 10 years ago | |
cli-authinteract.c | 10 years ago | |
cli-authpasswd.c | 10 years ago | |
cli-authpubkey.c | 10 years ago | |
cli-channel.c | 10 years ago | |
cli-chansession.c | 10 years ago | |
cli-kex.c | 10 years ago | |
cli-main.c | 10 years ago | |
cli-runopts.c | 10 years ago | |
cli-session.c | 10 years ago | |
cli-tcpfwd.c | 10 years ago | |
common-algo.c | 10 years ago | |
common-channel.c | 10 years ago | |
common-chansession.c | 10 years ago | |
common-kex.c | 10 years ago | |
common-runopts.c | 10 years ago | |
common-session.c | 10 years ago | |
compat.c | 10 years ago | |
compat.h | 10 years ago | |
config.guess | 10 years ago | |
config.h.in | 10 years ago | |
config.sub | 10 years ago | |
configure | 10 years ago | |
configure.ac | 10 years ago | |
crypto_desc.c | 10 years ago | |
crypto_desc.h | 10 years ago | |
curve25519-donna.c | 10 years ago | |
dbclient.1 | 10 years ago | |
dbmulti.c | 10 years ago | |
dbrandom.c | 10 years ago | |
dbrandom.h | 10 years ago | |
dbutil.c | 9 years ago | |
dbutil.h | 10 years ago | |
debug.h | 10 years ago | |
dropbear.8 | 10 years ago | |
dropbearconvert.1 | 10 years ago | |
dropbearconvert.c | 10 years ago | |
dropbearkey.1 | 10 years ago | |
dropbearkey.c | 10 years ago | |
dss.c | 10 years ago | |
dss.h | 10 years ago | |
ecc.c | 10 years ago | |
ecc.h | 10 years ago | |
ecdsa.c | 10 years ago | |
ecdsa.h | 10 years ago | |
fake-rfc2553.c | 10 years ago | |
fake-rfc2553.h | 10 years ago | |
filelist.txt | 10 years ago | |
gendss.c | 10 years ago | |
gendss.h | 10 years ago | |
genrsa.c | 10 years ago | |
genrsa.h | 10 years ago | |
gensignkey.c | 10 years ago | |
gensignkey.h | 10 years ago | |
includes.h | 10 years ago | |
install-sh | 10 years ago | |
kex.h | 10 years ago | |
keyimport.c | 10 years ago | |
keyimport.h | 10 years ago | |
list.c | 10 years ago | |
list.h | 10 years ago | |
listener.c | 10 years ago | |
listener.h | 10 years ago | |
loginrec.c | 10 years ago | |
loginrec.h | 10 years ago | |
ltc_prng.c | 10 years ago | |
ltc_prng.h | 10 years ago | |
options.h | 8 years ago | |
packet.c | 10 years ago | |
packet.h | 10 years ago | |
process-packet.c | 10 years ago | |
progressmeter.c | 10 years ago | |
progressmeter.h | 10 years ago | |
queue.c | 10 years ago | |
queue.h | 10 years ago | |
release.sh | 10 years ago | |
rsa.c | 10 years ago | |
rsa.h | 10 years ago | |
runopts.h | 10 years ago | |
scp.c | 8 years ago | |
scpmisc.c | 10 years ago | |
scpmisc.h | 10 years ago | |
service.h | 10 years ago | |
session.h | 10 years ago | |
signkey.c | 10 years ago | |
signkey.h | 10 years ago | |
ssh.h | 10 years ago | |
sshpty.c | 10 years ago | |
sshpty.h | 10 years ago | |
svr-agentfwd.c | 10 years ago | |
svr-auth.c | 10 years ago | |
svr-authpam.c | 10 years ago | |
svr-authpasswd.c | 10 years ago | |
svr-authpubkey.c | 10 years ago | |
svr-authpubkeyoptions.c | 10 years ago | |
svr-chansession.c | 8 years ago | |
svr-kex.c | 10 years ago | |
svr-main.c | 10 years ago | |
svr-runopts.c | 10 years ago | |
svr-service.c | 10 years ago | |
svr-session.c | 10 years ago | |
svr-tcpfwd.c | 10 years ago | |
svr-x11fwd.c | 10 years ago | |
sysoptions.h | 10 years ago | |
tcp-accept.c | 10 years ago | |
tcpfwd.h | 10 years ago | |
termcodes.c | 10 years ago | |
termcodes.h | 10 years ago | |
x11fwd.h | 10 years ago |
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 <hostname> 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.