Name Date Size #Lines LOC

..--

contrib/H10-Jan-2016-5,1733,659

openbsd-compat/H10-Jan-2016-18,58112,064

regress/H10-Jan-2016-5,6134,356

CREDITSHD10-Jan-20165.4 KiB10699

ChangeLogHD10-Jan-2016127 KiB2,8882,727

FREEBSD-upgradeHD10-Jan-20164.3 KiB14787

FREEBSD-vendorHD10-Jan-2016131 76

INSTALLHD10-Jan-20169 KiB270183

LICENCEHD10-Jan-201615.7 KiB341296

Makefile.inHD10-Jan-201618.8 KiB477411

OVERVIEWHD10-Jan-20166.6 KiB169124

PROTOCOLHD10-Jan-201613.1 KiB360265

PROTOCOL.agentHD10-Jan-201617.6 KiB561407

PROTOCOL.certkeysHD10-Jan-201610.4 KiB266212

PROTOCOL.chacha20poly1305HD10-Jan-20164.4 KiB10682

PROTOCOL.keyHD10-Jan-20161.5 KiB6951

PROTOCOL.krlHD10-Jan-20164.8 KiB165112

PROTOCOL.muxHD10-Jan-20165.9 KiB223161

READMEHD10-Jan-20162.7 KiB6649

README.dnsHD10-Jan-20161.6 KiB4830

README.hpnHD10-Jan-20164.5 KiB9674

README.platformHD10-Jan-20163.9 KiB9773

README.privsepHD10-Jan-20162.6 KiB6447

README.tunHD10-Jan-20164.8 KiB13398

TODOHD10-Jan-20162.7 KiB8766

aclocal.m4HD10-Jan-20165.3 KiB180171

addrmatch.cHD10-Jan-201610.9 KiB501355

atomicio.cHD10-Jan-20164.4 KiB170121

atomicio.hHD10-Jan-20162.1 KiB5213

audit-bsm.cHD10-Jan-201611.9 KiB458323

audit-linux.cHD10-Jan-20163.5 KiB12776

audit.cHD10-Jan-20165.7 KiB187105

audit.hHD10-Jan-20162.3 KiB5827

auth-bsdauth.cHD10-Jan-20163.5 KiB13993

auth-chall.cHD10-Jan-20163.5 KiB12486

auth-krb5.cHD10-Jan-20166.9 KiB273200

auth-options.cHD10-Jan-201616 KiB634560

auth-options.hHD10-Jan-20161.2 KiB4120

auth-pam.cHD10-Jan-201630.8 KiB1,220946

auth-pam.hHD10-Jan-20162 KiB5121

auth-passwd.cHD10-Jan-20166.2 KiB216144

auth-rh-rsa.cHD10-Jan-20163 KiB10460

auth-rhosts.cHD10-Jan-20169 KiB322215

auth-rsa.cHD10-Jan-20168.9 KiB343200

auth-shadow.cHD10-Jan-20164.2 KiB14387

auth-sia.cHD10-Jan-20163.1 KiB11570

auth-sia.hHD10-Jan-20161.4 KiB324

auth-skey.cHD10-Jan-20162.8 KiB10966

auth.cHD10-Jan-201619.2 KiB760582

auth.hHD10-Jan-20167.1 KiB222146

auth1.cHD10-Jan-201610.1 KiB440305

auth2-chall.cHD10-Jan-20169.2 KiB380302

auth2-gss.cHD10-Jan-20168 KiB295195

auth2-hostbased.cHD10-Jan-20166.5 KiB231177

auth2-kbdint.cHD10-Jan-20162.1 KiB6932

auth2-none.cHD10-Jan-20162.2 KiB7439

auth2-passwd.cHD10-Jan-20162.4 KiB8145

auth2-pubkey.cHD10-Jan-201617.9 KiB688544

auth2.cHD10-Jan-201616.8 KiB649501

authfd.cHD10-Jan-201616.1 KiB658468

authfd.hHD10-Jan-20163.1 KiB9557

authfile.cHD10-Jan-201633.5 KiB1,3091,037

authfile.hHD10-Jan-20161.3 KiB3316

blocks.cHD10-Jan-20166.5 KiB249215

bufaux.cHD10-Jan-20168.8 KiB394261

bufbn.cHD10-Jan-20166.1 KiB230154

bufec.cHD10-Jan-20163.9 KiB147100

buffer.cHD10-Jan-20165.8 KiB262177

buffer.hHD10-Jan-20163.4 KiB10666

buildpkg.sh.inHD10-Jan-201617.6 KiB678526

canohost.cHD10-Jan-201610.8 KiB432287

canohost.hHD10-Jan-20161,000 3012

chacha.cHD10-Jan-20165.3 KiB220188

chacha.hHD10-Jan-2016975 3621

channels.cHD10-Jan-2016101.9 KiB3,8983,075

channels.hHD10-Jan-201611.4 KiB318207

cipher-3des1.cHD10-Jan-20165.1 KiB184127

cipher-aes.cHD10-Jan-20164.5 KiB162119

cipher-bf1.cHD10-Jan-20163 KiB10962

cipher-chachapoly.cHD10-Jan-20163.7 KiB11566

cipher-chachapoly.hHD10-Jan-20161.6 KiB4219

cipher-ctr.cHD10-Jan-20163.5 KiB147103

cipher.cHD10-Jan-201615.1 KiB573446

cipher.hHD10-Jan-20164.1 KiB10456

cleanup.cHD10-Jan-20161 KiB3310

clientloop.cHD10-Jan-201661.8 KiB2,2921,625

clientloop.hHD10-Jan-20163.5 KiB8028

compat.cHD10-Jan-20168.3 KiB294242

compat.hHD10-Jan-20162.9 KiB7946

compress.cHD10-Jan-20165 KiB16898

compress.hHD10-Jan-2016885 268

config.guessHD10-Jan-201643.9 KiB1,5381,331

config.hHD10-Jan-201646.7 KiB1,710296

config.h.inHD10-Jan-201644.1 KiB1,7091,152

config.subHD10-Jan-201634.9 KiB1,7941,651

configureHD10-Jan-2016501.1 KiB19,74215,981

configure.acHD10-Jan-2016132.8 KiB4,9024,592

crc32.cHD10-Jan-20164.9 KiB10677

crc32.hHD10-Jan-20161.4 KiB314

crypto_api.hHD10-Jan-20161.3 KiB4526

deattack.cHD10-Jan-20163.9 KiB161100

deattack.hHD10-Jan-2016917 327

defines.hHD10-Jan-201620.2 KiB830621

dh.cHD10-Jan-20169.3 KiB358273

dh.hHD10-Jan-20162.4 KiB7530

digest-libc.cHD10-Jan-20165.3 KiB239193

digest-openssl.cHD10-Jan-20164 KiB167125

digest.hHD10-Jan-20162.3 KiB6429

dispatch.cHD10-Jan-20162.8 KiB10571

dispatch.hHD10-Jan-20161.8 KiB4212

dns.cHD10-Jan-20168.8 KiB342243

dns.hHD10-Jan-20162 KiB5622

ed25519.cHD10-Jan-20163.1 KiB145105

entropy.cHD10-Jan-20166.4 KiB240165

entropy.hHD10-Jan-20161.5 KiB387

fatal.cHD10-Jan-20161.6 KiB4613

fe25519.cHD10-Jan-20168.1 KiB338278

fe25519.hHD10-Jan-20162.3 KiB7142

fixalgorithmsHD10-Jan-2016422 2713

fixpathsHD10-Jan-2016499 2312

fixprogsHD10-Jan-20161.6 KiB7353

freebsd-configure.shHD10-Jan-2016611 3118

freebsd-post-merge.shHD10-Jan-2016278 158

freebsd-pre-merge.shHD10-Jan-2016468 2013

ge25519.cHD10-Jan-201611 KiB322249

ge25519.hHD10-Jan-20161.3 KiB4425

ge25519_base.dataHD10-Jan-2016164.6 KiB859856

groupaccess.cHD10-Jan-20163.4 KiB13175

groupaccess.hHD10-Jan-20161.5 KiB367

gss-genr.cHD10-Jan-20167.3 KiB282191

gss-serv-krb5.cHD10-Jan-20165.6 KiB212143

gss-serv.cHD10-Jan-20169.9 KiB388242

hash.cHD10-Jan-20161.8 KiB7755

hmac.cHD10-Jan-20165.1 KiB198150

hmac.hHD10-Jan-20161.6 KiB3814

hostfile.cHD10-Jan-201612.9 KiB490356

hostfile.hHD10-Jan-20161.5 KiB5531

includes.hHD10-Jan-20163.9 KiB180136

install-shHD10-Jan-20165.5 KiB252153

kex.cHD10-Jan-201617.8 KiB690549

kex.hHD10-Jan-20165.6 KiB205159

kexc25519.cHD10-Jan-20164.1 KiB12378

kexc25519c.cHD10-Jan-20164.2 KiB13082

kexc25519s.cHD10-Jan-20164.2 KiB12778

kexdh.cHD10-Jan-20162.8 KiB8850

kexdhc.cHD10-Jan-20164.8 KiB162112

kexdhs.cHD10-Jan-20164.7 KiB161107

kexecdh.cHD10-Jan-20163.1 KiB9858

kexecdhc.cHD10-Jan-20165.1 KiB166113

kexecdhs.cHD10-Jan-20165 KiB162108

kexgex.cHD10-Jan-20163.2 KiB9961

kexgexc.cHD10-Jan-20165.9 KiB208144

kexgexs.cHD10-Jan-20166.1 KiB209144

key.cHD10-Jan-201665.1 KiB2,6262,272

key.hHD10-Jan-20165.2 KiB167125

krb5_config.hHD10-Jan-2016315 1210

krl.cHD10-Jan-201632.3 KiB1,2381,009

krl.hHD10-Jan-20162.5 KiB6434

log.cHD10-Jan-201610.4 KiB462354

log.hHD10-Jan-20162.5 KiB7955

loginrec.cHD10-Jan-201641.9 KiB1,7271,102

loginrec.hHD10-Jan-20164.6 KiB13251

logintest.cHD10-Jan-20168.6 KiB309214

mac.cHD10-Jan-20166.9 KiB247194

mac.hHD10-Jan-20161.5 KiB326

match.cHD10-Jan-20167.2 KiB280145

match.hHD10-Jan-20161.1 KiB2811

md-sha256.cHD10-Jan-20162.2 KiB8754

md5crypt.cHD10-Jan-20164 KiB168102

md5crypt.hHD10-Jan-2016803 258

mdoc2man.awkHD10-Jan-20168.4 KiB371339

misc.cHD10-Jan-201621.8 KiB1,071828

misc.hHD10-Jan-20163.3 KiB11276

mkinstalldirsHD10-Jan-2016691 4123

moduliHD10-Jan-2016265 KiB277276

moduli.0HD10-Jan-20163.3 KiB7555

moduli.5HD10-Jan-20163.6 KiB128127

moduli.cHD10-Jan-201620.4 KiB804490

monitor.cHD10-Jan-201651.9 KiB2,1401,673

monitor.hHD10-Jan-20164 KiB9960

monitor_fdpass.cHD10-Jan-20164.6 KiB183142

monitor_fdpass.hHD10-Jan-20161.5 KiB355

monitor_mm.cHD10-Jan-20168.5 KiB356242

monitor_mm.hHD10-Jan-20162.2 KiB6325

monitor_wrap.cHD10-Jan-201630.1 KiB1,292967

monitor_wrap.hHD10-Jan-20164.1 KiB11263

msg.cHD10-Jan-20162.6 KiB9055

msg.hHD10-Jan-20161.5 KiB325

mux.cHD10-Jan-201654.8 KiB2,1061,725

myproposal.hHD10-Jan-20164.3 KiB149108

nchan.cHD10-Jan-201612.8 KiB532435

nchan.msHD10-Jan-20163.9 KiB10074

nchan2.msHD10-Jan-20163.4 KiB8964

openssh.xml.inHD10-Jan-20162.8 KiB9161

opensshd.init.inHD10-Jan-20161.8 KiB8964

packet.cHD10-Jan-201654.5 KiB2,0591,507

packet.hHD10-Jan-20164.2 KiB12895

pathnames.hHD10-Jan-20166 KiB18577

pkcs11.hHD10-Jan-201641.4 KiB1,3581,119

platform.cHD10-Jan-20164.9 KiB215140

platform.hHD10-Jan-20161.3 KiB3413

poly1305.cHD10-Jan-20164.5 KiB161121

poly1305.hHD10-Jan-2016645 2311

progressmeter.cHD10-Jan-20167.4 KiB308221

progressmeter.hHD10-Jan-20161.4 KiB282

readconf.cHD10-Jan-201654.8 KiB1,9451,589

readconf.hHD10-Jan-20167.3 KiB203143

readpass.cHD10-Jan-20165 KiB194139

rijndael.cHD10-Jan-201657.3 KiB1,2451,120

rijndael.hHD10-Jan-20161.8 KiB5218

roaming.hHD10-Jan-20161.7 KiB4624

roaming_client.cHD10-Jan-20167.1 KiB278211

roaming_common.cHD10-Jan-20165.5 KiB245192

roaming_dummy.cHD10-Jan-20161.4 KiB6231

roaming_serv.cHD10-Jan-20161 KiB328

rsa.cHD10-Jan-20164.6 KiB15269

rsa.hHD10-Jan-2016866 278

sandbox-capsicum.cHD10-Jan-20163.3 KiB12479

sandbox-darwin.cHD10-Jan-20162.5 KiB9957

sandbox-null.cHD10-Jan-20161.6 KiB7336

sandbox-rlimit.cHD10-Jan-20162.4 KiB9860

sandbox-seccomp-filter.cHD10-Jan-20166.7 KiB241172

sandbox-systrace.cHD10-Jan-20165.8 KiB201152

sc25519.cHD10-Jan-20167.2 KiB309255

sc25519.hHD10-Jan-20162.8 KiB8146

scp.0HD10-Jan-20165.9 KiB164134

scp.1HD10-Jan-20165 KiB246245

scp.cHD10-Jan-201631.2 KiB1,3471,108

servconf.cHD10-Jan-201662.4 KiB2,1361,831

servconf.hHD10-Jan-20169.4 KiB243167

serverloop.cHD10-Jan-201635.4 KiB1,281917

serverloop.hHD10-Jan-20161,016 285

session.cHD10-Jan-201666.9 KiB2,7942,064

session.hHD10-Jan-20162.5 KiB8548

sftp-client.cHD10-Jan-201641.1 KiB1,7361,389

sftp-client.hHD10-Jan-20164 KiB13546

sftp-common.cHD10-Jan-20166.2 KiB238185

sftp-common.hHD10-Jan-20162 KiB5218

sftp-glob.cHD10-Jan-20163.4 KiB15195

sftp-server-main.cHD10-Jan-20161.4 KiB5226

sftp-server.0HD10-Jan-20164.2 KiB9673

sftp-server.8HD10-Jan-20165 KiB171170

sftp-server.cHD10-Jan-201637.3 KiB1,6251,390

sftp.0HD10-Jan-201614.5 KiB371287

sftp.1HD10-Jan-201614 KiB604603

sftp.cHD10-Jan-201656 KiB2,4301,993

sftp.hHD10-Jan-20163.3 KiB10255

smult_curve25519_ref.cHD10-Jan-20166.7 KiB266227

ssh-add.0HD10-Jan-20165 KiB12494

ssh-add.1HD10-Jan-20166.4 KiB202201

ssh-add.cHD10-Jan-201613 KiB526420

ssh-agent.0HD10-Jan-20165.6 KiB129100

ssh-agent.1HD10-Jan-20167.2 KiB221220

ssh-agent.cHD10-Jan-201631 KiB1,2921,071

ssh-dss.cHD10-Jan-20165.2 KiB190137

ssh-ecdsa.cHD10-Jan-20164.8 KiB179125

ssh-ed25519.cHD10-Jan-20163.9 KiB150116

ssh-gss.hHD10-Jan-20164.6 KiB13688

ssh-keygen.0HD10-Jan-201626.5 KiB563449

ssh-keygen.1HD10-Jan-201625.6 KiB855854

ssh-keygen.cHD10-Jan-201669.1 KiB2,7052,360

ssh-keyscan.0HD10-Jan-20164.2 KiB11180

ssh-keyscan.1HD10-Jan-20164.2 KiB178177

ssh-keyscan.cHD10-Jan-201616.6 KiB771650

ssh-keysign.0HD10-Jan-20161.8 KiB5441

ssh-keysign.8HD10-Jan-20163 KiB9493

ssh-keysign.cHD10-Jan-20166.3 KiB261183

ssh-pkcs11-client.cHD10-Jan-20165.2 KiB241193

ssh-pkcs11-helper.0HD10-Jan-2016632 2617

ssh-pkcs11-helper.8HD10-Jan-20161.3 KiB4443

ssh-pkcs11-helper.cHD10-Jan-20167.9 KiB371290

ssh-pkcs11.cHD10-Jan-201617.5 KiB671559

ssh-pkcs11.hHD10-Jan-2016994 214

ssh-rsa.cHD10-Jan-20166.6 KiB260208

ssh-sandbox.hHD10-Jan-20161.1 KiB256

ssh.0HD10-Jan-201646.2 KiB947776

ssh.1HD10-Jan-201643 KiB1,5961,595

ssh.cHD10-Jan-201654.9 KiB1,9191,427

ssh.hHD10-Jan-20162.7 KiB10020

ssh1.hHD10-Jan-20164.1 KiB9359

ssh2.hHD10-Jan-20165.8 KiB17781

ssh_configHD10-Jan-20161.6 KiB5247

ssh_config.0HD10-Jan-201646.7 KiB890750

ssh_config.5HD10-Jan-201642 KiB1,5101,509

ssh_namespace.hHD10-Jan-201628.8 KiB576562

sshconnect.cHD10-Jan-201639.5 KiB1,4431,093

sshconnect.hHD10-Jan-20162.6 KiB7636

sshconnect1.cHD10-Jan-201621.6 KiB756499

sshconnect2.cHD10-Jan-201643.1 KiB1,6731,336

sshd.0HD10-Jan-201632.5 KiB644534

sshd.8HD10-Jan-201631 KiB994993

sshd.cHD10-Jan-201669 KiB2,5881,827

sshd_configHD10-Jan-20163.8 KiB146116

sshd_config.0HD10-Jan-201643.6 KiB836703

sshd_config.5HD10-Jan-201639.7 KiB1,3941,393

sshlogin.cHD10-Jan-20165.1 KiB16489

sshlogin.hHD10-Jan-2016935 248

sshpty.cHD10-Jan-20166.2 KiB259192

sshpty.hHD10-Jan-20161,009 289

sshtty.cHD10-Jan-20162.9 KiB9752

survey.sh.inHD10-Jan-20161.7 KiB7049

ttymodes.cHD10-Jan-201610.4 KiB491353

ttymodes.hHD10-Jan-20165.2 KiB176101

uidswap.cHD10-Jan-20167.6 KiB258171

uidswap.hHD10-Jan-2016716 194

umac.cHD10-Jan-201645.8 KiB1,288768

umac.hHD10-Jan-20164.6 KiB13042

umac128.cHD10-Jan-2016316 1412

uuencode.cHD10-Jan-20162.9 KiB9649

uuencode.hHD10-Jan-20161.5 KiB303

verify.cHD10-Jan-2016668 5040

version.hHD10-Jan-2016273 115

xmalloc.cHD10-Jan-20162.2 KiB10373

xmalloc.hHD10-Jan-20161,016 267

README

1See http://www.openssh.com/txt/release-6.6 for the release notes.
2
3- A Japanese translation of this document and of the OpenSSH FAQ is
4- available at http://www.unixuser.org/~haruyama/security/openssh/index.html
5- Thanks to HARUYAMA Seigo <haruyama@unixuser.org>
6
7This is the port of OpenBSD's excellent OpenSSH[0] to Linux and other
8Unices.
9
10OpenSSH is based on the last free version of Tatu Ylonen's sample
11implementation with all patent-encumbered algorithms removed (to
12external libraries), all known security bugs fixed, new features
13reintroduced and many other clean-ups.  OpenSSH has been created by
14Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt,
15and Dug Song. It has a homepage at http://www.openssh.com/
16
17This port consists of the re-introduction of autoconf support, PAM
18support, EGD[1]/PRNGD[2] support and replacements for OpenBSD library
19functions that are (regrettably) absent from other unices. This port
20has been best tested on AIX, Cygwin, HP-UX, Linux, MacOS/X,
21NetBSD, OpenBSD, OpenServer, Solaris, Unicos, and UnixWare.
22
23This version actively tracks changes in the OpenBSD CVS repository.
24
25The PAM support is now more functional than the popular packages of
26commercial ssh-1.2.x. It checks "account" and "session" modules for
27all logins, not just when using password authentication.
28
29OpenSSH depends on Zlib[3], OpenSSL[4] and optionally PAM[5].
30
31There is now several mailing lists for this port of OpenSSH. Please
32refer to http://www.openssh.com/list.html for details on how to join.
33
34Please send bug reports and patches to the mailing list
35openssh-unix-dev@mindrot.org. The list is open to posting by
36unsubscribed users.Code contribution are welcomed, but please follow the
37OpenBSD style guidelines[6].
38
39Please refer to the INSTALL document for information on how to install
40OpenSSH on your system. There are a number of differences between this
41port of OpenSSH and F-Secure SSH 1.x, please refer to the OpenSSH FAQ[7]
42for details and general tips.
43
44Damien Miller <djm@mindrot.org>
45
46Miscellania -
47
48This version of OpenSSH is based upon code retrieved from the OpenBSD
49CVS repository which in turn was based on the last free sample
50implementation released by Tatu Ylonen.
51
52References -
53
54[0] http://www.openssh.com/faq.html
55[1] http://www.lothar.com/tech/crypto/
56[2] http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html
57[3] http://www.gzip.org/zlib/
58[4] http://www.openssl.org/
59[5] http://www.openpam.org
60    http://www.kernel.org/pub/linux/libs/pam/
61    (PAM also is standard on Solaris and HP-UX 11)
62[6] http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9
63[7] http://www.openssh.com/faq.html
64
65$Id: README,v 1.86 2014/02/27 23:03:53 djm Exp $
66

README.dns

1How to verify host keys using OpenSSH and DNS
2---------------------------------------------
3
4OpenSSH contains support for verifying host keys using DNS as described in
5draft-ietf-secsh-dns-05.txt. The document contains very brief instructions
6on how to use this feature. Configuring DNS is out of the scope of this
7document.
8
9
10(1) Server: Generate and publish the DNS RR
11
12To create a DNS resource record (RR) containing a fingerprint of the
13public host key, use the following command:
14
15	ssh-keygen -r hostname -f keyfile -g
16
17where "hostname" is your fully qualified hostname and "keyfile" is the
18file containing the public host key file. If you have multiple keys,
19you should generate one RR for each key.
20
21In the example above, ssh-keygen will print the fingerprint in a
22generic DNS RR format parsable by most modern name server
23implementations. If your nameserver has support for the SSHFP RR
24you can omit the -g flag and ssh-keygen will print a standard SSHFP RR.
25
26To publish the fingerprint using the DNS you must add the generated RR
27to your DNS zone file and sign your zone.
28
29
30(2) Client: Enable ssh to verify host keys using DNS
31
32To enable the ssh client to verify host keys using DNS, you have to
33add the following option to the ssh configuration file
34($HOME/.ssh/config or /etc/ssh/ssh_config):
35
36    VerifyHostKeyDNS yes
37
38Upon connection the client will try to look up the fingerprint RR
39using DNS. If the fingerprint received from the DNS server matches
40the remote host key, the user will be notified.
41
42
43	Jakob Schlyter
44	Wesley Griffin
45
46
47$OpenBSD: README.dns,v 1.2 2003/10/14 19:43:23 jakob Exp $
48

README.hpn

1Notes:
2
3PERFORMANCE:
4  The performance increase will only be as good as the network and TCP stack
5  tuning on the reciever side of the connection allows.  As a rule of thumb a
6  user will need at least 10Mb/s connection with a 100ms RTT to see a doubling
7  of performance.
8  The HPN-SSH home page  http://www.psc.edu/networking/projects/hpn-ssh
9  describes this in greater detail.
10
11
12BUFFER SIZES:
13- if HPN is disabled the receive buffer size will be set to the OpenSSH default
14  of 64K.
15
16- if a HPN system connects to a non-HPN system the receive buffer will
17  be set to the HPNBufferSize value. The default is 2MB but user adjustable.
18
19- If a HPN to HPN connection is established a number of different things might
20  happen based on the user options and conditions.
21
22  Conditions: HPNBufferSize NOT Set, TCPRcvBufPoll enabled, TCPRcvBuf NOT Set
23  Result: HPN Buffer Size = up to 64MB
24    This is the default state.  The HPN buffer size will grow to a maximum of
25    64MB as the TCP receive buffer grows.  The maximum HPN Buffer size of 64MB
26    is geared towards 10GigE transcontinental connections.
27
28  Conditions: HPNBufferSize NOT Set, TCPRcvBufPoll disabled, TCPRcvBuf NOT Set
29  Result: HPN Buffer Size = TCP receive buffer value.
30    Users on non-autotuning systesm should disable TCPRcvBufPoll in the
31    ssh_cofig and sshd_config
32
33  Conditions: HPNBufferSize SET, TCPRcvBufPoll disabled, TCPRcvBuf NOT Set
34  Result: HPN Buffer Size = minmum of TCP receive buffer and HPNBufferSize.
35    This would be the system defined TCP receive buffer (RWIN).
36
37  Conditions: HPNBufferSize SET, TCPRcvBufPoll disabled, TCPRcvBuf SET
38  Result: HPN Buffer Size = minmum of TCPRcvBuf and HPNBufferSize.
39    Generally there is no need to set both.
40
41  Conditions: HPNBufferSize SET, TCPRcvBufPoll enabled, TCPRcvBuf NOT Set
42  Result: HPN Buffer Size = grows to HPNBufferSize
43    The buffer will grow up to the maximum size specified here.
44
45  Conditions: HPNBufferSize SET, TCPRcvBufPoll enabled, TCPRcvBuf SET
46  Result: HPN Buffer Size = minmum of TCPRcvBuf and HPNBufferSize.
47    Generally there is no need to set both of these, especially on autotuning
48    systems. However, if the users wishes to override the autotuning this would
49    be one way to do it.
50
51  Conditions: HPNBufferSize NOT Set, TCPRcvBufPoll enabled, TCPRcvBuf SET
52  Result: HPN Buffer Size = TCPRcvBuf.
53   This will override autotuning and set the TCP recieve buffer to the user
54   defined value.
55
56
57HPN SPECIFIC CONFIGURATION OPTIONS:
58
59- HPNDisabled=[yes/no] client/server
60  In some situations, such as transfers on a local area network, the impact
61  of the HPN code produces a net decrease in performance.  In these cases it is
62  helpful to disable the HPN functionality. By default HPNDisabled is set to no.
63
64- HPNBufferSize=[int]KB client/server
65  This is the default buffer size the HPN functionality uses when interacting
66  with non-HPN SSH installations.  Conceptually this is similar to the TcpRcvBuf
67  option as applied to the internal SSH flow control.  This value can range from
68  1KB to 64MB (1-65536).  Use of oversized or undersized buffers can cause
69  performance problems depending on the roud trip time of the network path.
70  The default size of this buffer is 2MB.
71
72- TcpRcvBufPoll=[yes/no] client/server
73  Enable or disable the polling of the TCP receive buffer through the life
74  of the connection.  You would want to make sure that this option is enabled
75  for systems making use of autotuning kernels (linux 2.4.24+, 2.6, MS Vista,
76  FreeBSD 7.x and later). Default is yes.
77
78- TcpRcvBuf=[int]KB client
79  Set the TCP socket receive buffer to n Kilobytes.  It can be set up to the
80  maximum socket size allowed by the system.  This is useful in situations where
81  the TCP receive window is set low but the maximum buffer size is set higher
82  (as is typical).  This works on a per TCP connection basis.  You can also use
83  this to artifically limit the transfer rate of the connection.  In these cases
84  the throughput will be no more than n/RTT.  The minimum buffer size is 1KB.
85  Default is the current system wide TCP receive buffer size.
86
87
88CREDITS:
89
90  This patch was conceived, designed, and led by Chris Rapier (rapier@psc.edu)
91  The majority of the actual coding for versions up to HPN12v1 was performed
92  by Michael Stevens (mstevens@andrew.cmu.edu).
93  The MT-AES-CTR cipher was implemented by Ben Bennet (ben@psc.edu).
94  This work was financed, in part, by Cisco System, Inc., the National Library
95  of Medicine, and the National Science Foundation.
96

README.platform

1This file contains notes about OpenSSH on specific platforms.
2
3AIX
4---
5As of OpenSSH 3.8p1, sshd will now honour an accounts password expiry
6settings, where previously it did not.  Because of this, it's possible for
7sites that have used OpenSSH's sshd exclusively to have accounts which
8have passwords expired longer than the inactive time (ie the "Weeks between
9password EXPIRATION and LOCKOUT" setting in SMIT or the maxexpired
10chuser attribute).
11
12Accounts in this state must have their passwords reset manually by the
13administrator.  As a precaution, it is recommended that the administrative
14passwords be reset before upgrading from OpenSSH <3.8.
15
16As of OpenSSH 4.0, configure will attempt to detect if your version
17and maintenance level of AIX has a working getaddrinfo, and will use it
18if found.  This will enable IPv6 support.  If for some reason configure
19gets it wrong, or if you want to build binaries to work on earlier MLs
20than the build host then you can add "-DBROKEN_GETADDRINFO" to CFLAGS
21to force the previous IPv4-only behaviour.
22
23IPv6 known to work: 5.1ML7 5.2ML2 5.2ML5
24IPv6 known broken: 4.3.3ML11 5.1ML4
25
26If you wish to use dynamic libraries that aren't in the normal system
27locations (eg IBM's OpenSSL and zlib packages) then you will need to
28define the environment variable blibpath before running configure, eg
29
30blibpath=/lib:/usr/lib:/opt/freeware/lib ./configure \
31  --with-ssl-dir=/opt/freeware --with-zlib=/opt/freeware
32
33If sshd is built with the WITH_AIXAUTHENTICATE option (which is enabled
34by default) then sshd checks that users are permitted via the
35loginrestrictions() function, in particular that the user has the
36"rlogin" attribute set.  This check is not done for the root account,
37instead the PermitRootLogin setting in sshd_config is used.
38
39
40Cygwin
41------
42To build on Cygwin, OpenSSH requires the following packages:
43gcc, gcc-mingw-core, mingw-runtime, binutils, make, openssl,
44openssl-devel, zlib, minres, minires-devel.
45
46
47Darwin and MacOS X
48------------------
49Darwin does not provide a tun(4) driver required for OpenSSH-based
50virtual private networks. The BSD manpage still exists, but the driver
51has been removed in recent releases of Darwin and MacOS X.
52
53Nevertheless, tunnel support is known to work with Darwin 8 and
54MacOS X 10.4 in Point-to-Point (Layer 3) and Ethernet (Layer 2) mode
55using a third party driver. More information is available at:
56	http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
57
58
59Linux
60-----
61
62Some Linux distributions (including Red Hat/Fedora/CentOS) include
63headers and library links in the -devel RPMs rather than the main
64binary RPMs. If you get an error about headers, or complaining about a
65missing prerequisite then you may need to install the equivalent
66development packages.  On Redhat based distros these may be openssl-devel,
67zlib-devel and pam-devel, on Debian based distros these may be
68libssl-dev, libz-dev and libpam-dev.
69
70
71Solaris
72-------
73If you enable BSM auditing on Solaris, you need to update audit_event(4)
74for praudit(1m) to give sensible output.  The following line needs to be
75added to /etc/security/audit_event:
76
77	32800:AUE_openssh:OpenSSH login:lo
78
79The BSM audit event range available for third party TCB applications is
8032768 - 65535.  Event number 32800 has been choosen for AUE_openssh.
81There is no official registry of 3rd party event numbers, so if this
82number is already in use on your system, you may change it at build time
83by configure'ing --with-cflags=-DAUE_openssh=32801 then rebuilding.
84
85
86Platforms using PAM
87-------------------
88As of OpenSSH 4.3p1, sshd will no longer check /etc/nologin itself when
89PAM is enabled.  To maintain existing behaviour, pam_nologin should be
90added to sshd's session stack which will prevent users from starting shell
91sessions.  Alternatively, pam_nologin can be added to either the auth or
92account stacks which will prevent authentication entirely, but will still
93return the output from pam_nologin to the client.
94
95
96$Id: README.platform,v 1.10 2009/08/28 23:14:48 dtucker Exp $
97

README.privsep

1Privilege separation, or privsep, is method in OpenSSH by which
2operations that require root privilege are performed by a separate
3privileged monitor process.  Its purpose is to prevent privilege
4escalation by containing corruption to an unprivileged process.
5More information is available at:
6	http://www.citi.umich.edu/u/provos/ssh/privsep.html
7
8Privilege separation is now enabled by default; see the
9UsePrivilegeSeparation option in sshd_config(5).
10
11On systems which lack mmap or anonymous (MAP_ANON) memory mapping,
12compression must be disabled in order for privilege separation to
13function.
14
15When privsep is enabled, during the pre-authentication phase sshd will
16chroot(2) to "/var/empty" and change its privileges to the "sshd" user
17and its primary group.  sshd is a pseudo-account that should not be
18used by other daemons, and must be locked and should contain a
19"nologin" or invalid shell.
20
21You should do something like the following to prepare the privsep
22preauth environment:
23
24	# mkdir /var/empty
25	# chown root:sys /var/empty
26	# chmod 755 /var/empty
27	# groupadd sshd
28	# useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd
29
30/var/empty should not contain any files.
31
32configure supports the following options to change the default
33privsep user and chroot directory:
34
35  --with-privsep-path=xxx Path for privilege separation chroot
36  --with-privsep-user=user Specify non-privileged user for privilege separation
37
38Privsep requires operating system support for file descriptor passing.
39Compression will be disabled on systems without a working mmap MAP_ANON.
40
41PAM-enabled OpenSSH is known to function with privsep on AIX, FreeBSD,
42HP-UX (including Trusted Mode), Linux, NetBSD and Solaris.
43
44On Cygwin, Tru64 Unix, OpenServer, and Unicos only the pre-authentication
45part of privsep is supported.  Post-authentication privsep is disabled
46automatically (so you won't see the additional process mentioned below).
47
48Note that for a normal interactive login with a shell, enabling privsep
49will require 1 additional process per login session.
50
51Given the following process listing (from HP-UX):
52
53     UID   PID  PPID  C    STIME TTY       TIME COMMAND
54    root  1005     1  0 10:45:17 ?         0:08 /opt/openssh/sbin/sshd -u0
55    root  6917  1005  0 15:19:16 ?         0:00 sshd: stevesk [priv]
56 stevesk  6919  6917  0 15:19:17 ?         0:03 sshd: stevesk@2
57 stevesk  6921  6919  0 15:19:17 pts/2     0:00 -bash
58
59process 1005 is the sshd process listening for new connections.
60process 6917 is the privileged monitor process, 6919 is the user owned
61sshd process and 6921 is the shell process.
62
63$Id: README.privsep,v 1.16 2005/06/04 23:21:41 djm Exp $
64

README.tun

1How to use OpenSSH-based virtual private networks
2-------------------------------------------------
3
4OpenSSH contains support for VPN tunneling using the tun(4) network
5tunnel pseudo-device which is available on most platforms, either for
6layer 2 or 3 traffic.
7
8The following brief instructions on how to use this feature use
9a network configuration specific to the OpenBSD operating system.
10
11(1) Server: Enable support for SSH tunneling
12
13To enable the ssh server to accept tunnel requests from the client, you
14have to add the following option to the ssh server configuration file
15(/etc/ssh/sshd_config):
16
17	PermitTunnel yes
18
19Restart the server or send the hangup signal (SIGHUP) to let the server
20reread it's configuration.
21
22(2) Server: Restrict client access and assign the tunnel
23
24The OpenSSH server simply uses the file /root/.ssh/authorized_keys to
25restrict the client to connect to a specified tunnel and to
26automatically start the related interface configuration command. These
27settings are optional but recommended:
28
29	tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... reyk@openbsd.org
30
31(3) Client: Configure the local network tunnel interface
32
33Use the hostname.if(5) interface-specific configuration file to set up
34the network tunnel configuration with OpenBSD. For example, use the
35following configuration in /etc/hostname.tun0 to set up the layer 3
36tunnel on the client:
37
38	inet 192.168.5.1 255.255.255.252 192.168.5.2
39
40OpenBSD also supports layer 2 tunneling over the tun device by adding
41the link0 flag:
42
43	inet 192.168.1.78 255.255.255.0 192.168.1.255 link0
44
45Layer 2 tunnels can be used in combination with an Ethernet bridge(4)
46interface, like the following example for /etc/bridgename.bridge0:
47
48	add tun0
49	add sis0
50	up
51
52(4) Client: Configure the OpenSSH client
53
54To establish tunnel forwarding for connections to a specified
55remote host by default, use the following ssh client configuration for
56the privileged user (in /root/.ssh/config):
57
58	Host sshgateway
59		Tunnel yes
60		TunnelDevice 0:any
61		PermitLocalCommand yes
62	        LocalCommand sh /etc/netstart tun0
63
64A more complicated configuration is possible to establish a tunnel to
65a remote host which is not directly accessible by the client.
66The following example describes a client configuration to connect to
67the remote host over two ssh hops in between. It uses the OpenSSH
68ProxyCommand in combination with the nc(1) program to forward the final
69ssh tunnel destination over multiple ssh sessions.
70
71	Host access.somewhere.net
72	        User puffy
73	Host dmzgw
74	        User puffy
75	        ProxyCommand ssh access.somewhere.net nc dmzgw 22
76	Host sshgateway
77	        Tunnel Ethernet
78	        TunnelDevice 0:any
79	        PermitLocalCommand yes
80	        LocalCommand sh /etc/netstart tun0
81	        ProxyCommand ssh dmzgw nc sshgateway 22
82
83The following network plan illustrates the previous configuration in
84combination with layer 2 tunneling and Ethernet bridging.
85
86+--------+       (          )      +----------------------+
87| Client |------(  Internet  )-----| access.somewhere.net |
88+--------+       (          )      +----------------------+
89    : 192.168.1.78                             |
90    :.............................         +-------+
91     Forwarded ssh connection    :         | dmzgw |
92     Layer 2 tunnel              :         +-------+
93                                 :             |
94                                 :             |
95                                 :      +------------+
96                                 :......| sshgateway |
97                                      | +------------+
98--- real connection                 Bridge ->  |          +----------+
99... "virtual connection"                     [ X ]--------| somehost |
100[X] switch                                                +----------+
101                                                          192.168.1.25
102
103(5) Client: Connect to the server and establish the tunnel
104
105Finally connect to the OpenSSH server to establish the tunnel by using
106the following command:
107
108	ssh sshgateway
109
110It is also possible to tell the client to fork into the background after
111the connection has been successfully established:
112
113	ssh -f sshgateway true
114
115Without the ssh configuration done in step (4), it is also possible
116to use the following command lines:
117
118	ssh -fw 0:1 sshgateway true
119	ifconfig tun0 192.168.5.1 192.168.5.2 netmask 255.255.255.252
120
121Using OpenSSH tunnel forwarding is a simple way to establish secure
122and ad hoc virtual private networks. Possible fields of application
123could be wireless networks or administrative VPN tunnels.
124
125Nevertheless, ssh tunneling requires some packet header overhead and
126runs on top of TCP. It is still suggested to use the IP Security
127Protocol (IPSec) for robust and permanent VPN connections and to
128interconnect corporate networks.
129
130	Reyk Floeter
131
132$OpenBSD: README.tun,v 1.4 2006/03/28 00:12:31 deraadt Exp $
133