Name Date Size #Lines LOC

..22-Aug-2023-

contrib/H22-Aug-2023-4,6343,265

openbsd-compat/H22-Aug-2023-20,75713,521

regress/H22-Aug-2023-18,42914,705

.dependH A D22-Aug-2023129.9 KiB176174

.gitignoreH A D22-Aug-2023341 2928

.skipped-commit-idsH A D22-Aug-20231.8 KiB3330

CREDITSH A D22-Aug-20235.4 KiB10398

ChangeLogH A D22-Aug-2023299.1 KiB9,7426,275

FREEBSD-upgradeH A D22-Aug-20235.5 KiB176113

FREEBSD-vendorH A D22-Aug-2023131 76

INSTALLH A D22-Aug-20239.4 KiB277190

LICENCEH A D22-Aug-202314.8 KiB320277

Makefile.inH A D22-Aug-202324.7 KiB659564

OVERVIEWH A D22-Aug-20236.2 KiB162118

PROTOCOLH A D22-Aug-202317.7 KiB493365

PROTOCOL.agentH A D22-Aug-2023220 64

PROTOCOL.certkeysH A D22-Aug-202311.9 KiB307245

PROTOCOL.chacha20poly1305H A D22-Aug-20234.5 KiB10884

PROTOCOL.keyH A D22-Aug-20231.5 KiB6951

PROTOCOL.krlH A D22-Aug-20235 KiB170116

PROTOCOL.muxH A D22-Aug-20236.1 KiB229165

READMEH A D22-Aug-20232.6 KiB6750

README.dnsH A D22-Aug-20231.6 KiB4830

README.platformH A D22-Aug-20234 KiB9774

README.privsepH A D22-Aug-20232.3 KiB5541

README.tunH A D22-Aug-20234.8 KiB13398

TODOH A D22-Aug-20232.5 KiB8161

aclocal.m4H A D22-Aug-20235.6 KiB187178

addrmatch.cH A D22-Aug-202311 KiB499355

atomicio.cH A D22-Aug-20234.4 KiB171122

atomicio.hH A D22-Aug-20232.1 KiB5213

audit-bsm.cH A D22-Aug-202311.8 KiB455322

audit-linux.cH A D22-Aug-20233.5 KiB12778

audit.cH A D22-Aug-20235.7 KiB185105

audit.hH A D22-Aug-20232.3 KiB5627

auth-bsdauth.cH A D22-Aug-20233.6 KiB14699

auth-krb5.cH A D22-Aug-20236.9 KiB273200

auth-options.cH A D22-Aug-202323.4 KiB933765

auth-options.hH A D22-Aug-20232.7 KiB9636

auth-pam.cH A D22-Aug-202335.1 KiB1,3531,053

auth-pam.hH A D22-Aug-20231.9 KiB4820

auth-passwd.cH A D22-Aug-20236.4 KiB221145

auth-rhosts.cH A D22-Aug-20238.9 KiB325211

auth-shadow.cH A D22-Aug-20234.3 KiB14286

auth-sia.cH A D22-Aug-20233.2 KiB11671

auth-sia.hH A D22-Aug-20231.4 KiB324

auth-skey.cH A D22-Aug-20232.8 KiB10865

auth.cH A D22-Aug-202332.7 KiB1,205928

auth.hH A D22-Aug-20238 KiB245153

auth2-chall.cH A D22-Aug-20239.8 KiB384306

auth2-gss.cH A D22-Aug-20239.6 KiB336237

auth2-hostbased.cH A D22-Aug-20237.8 KiB255198

auth2-kbdint.cH A D22-Aug-20232.2 KiB7033

auth2-none.cH A D22-Aug-20232.3 KiB7943

auth2-passwd.cH A D22-Aug-20232.4 KiB7742

auth2-pubkey.cH A D22-Aug-202328.5 KiB1,040807

auth2.cH A D22-Aug-202322.3 KiB825638

authfd.cH A D22-Aug-202314.5 KiB581430

authfd.hH A D22-Aug-20233 KiB9153

authfile.cH A D22-Aug-202312.5 KiB533411

authfile.hH A D22-Aug-20232.3 KiB5320

bitmap.cH A D22-Aug-20234.4 KiB215171

bitmap.hH A D22-Aug-20231.9 KiB5815

blacklist.cH A D22-Aug-20232.8 KiB9850

blacklist_client.hH A D22-Aug-20232.1 KiB6220

buildpkg.sh.inH A D22-Aug-202317.6 KiB678526

canohost.cH A D22-Aug-20234.7 KiB205143

canohost.hH A D22-Aug-2023842 279

chacha.cH A D22-Aug-20235.3 KiB220188

chacha.hH A D22-Aug-20231,000 3722

channels.cH A D22-Aug-2023132.6 KiB4,8433,854

channels.hH A D22-Aug-202312.9 KiB344227

cipher-aes.cH A D22-Aug-20234.5 KiB162119

cipher-aesctr.cH A D22-Aug-20232.1 KiB8450

cipher-aesctr.hH A D22-Aug-20231.3 KiB3613

cipher-chachapoly.cH A D22-Aug-20233.7 KiB12071

cipher-chachapoly.hH A D22-Aug-20231.6 KiB4219

cipher-ctr.cH A D22-Aug-20233.6 KiB147103

cipher.cH A D22-Aug-202313.6 KiB528421

cipher.hH A D22-Aug-20233.1 KiB7632

cleanup.cH A D22-Aug-20231 KiB3310

clientloop.cH A D22-Aug-202365.8 KiB2,3461,720

clientloop.hH A D22-Aug-20233.7 KiB8431

compat.cH A D22-Aug-20236.6 KiB236196

compat.hH A D22-Aug-20232.8 KiB7432

config.guessH A D22-Aug-202342.7 KiB1,4571,264

config.hH A D22-Aug-202353 KiB1,956363

config.subH A D22-Aug-202335.5 KiB1,8241,686

configure.acH A D22-Aug-2023147.4 KiB5,4025,066

crc32.cH A D22-Aug-20234.9 KiB10677

crc32.hH A D22-Aug-20231.4 KiB314

crypto_api.hH A D22-Aug-20231.1 KiB4123

defines.hH A D22-Aug-202321.7 KiB877650

dh.cH A D22-Aug-202315.1 KiB491391

dh.hH A D22-Aug-20232.6 KiB8133

digest-libc.cH A D22-Aug-20235.7 KiB255204

digest-openssl.cH A D22-Aug-20234.9 KiB207159

digest.hH A D22-Aug-20232.5 KiB7132

dispatch.cH A D22-Aug-20233.5 KiB13696

dispatch.hH A D22-Aug-20232.2 KiB5723

dns.cH A D22-Aug-20239.2 KiB357258

dns.hH A D22-Aug-20232 KiB5925

ed25519.cH A D22-Aug-20233.1 KiB145105

entropy.cH A D22-Aug-20236.3 KiB251176

entropy.hH A D22-Aug-20231.5 KiB357

fatal.cH A D22-Aug-20231.6 KiB4613

fe25519.cH A D22-Aug-20238.1 KiB338278

fe25519.hH A D22-Aug-20232.3 KiB7142

fixalgorithmsH A D22-Aug-2023422 2713

fixpathsH A D22-Aug-2023499 2312

freebsd-configure.shH A D22-Aug-20231.1 KiB4426

freebsd-namespace.shH A D22-Aug-20231.9 KiB8555

freebsd-post-merge.shH A D22-Aug-2023224 158

freebsd-pre-merge.shH A D22-Aug-2023429 1812

ge25519.cH A D22-Aug-202311 KiB322249

ge25519.hH A D22-Aug-20231.4 KiB4425

ge25519_base.dataH A D22-Aug-2023164.6 KiB859856

groupaccess.cH A D22-Aug-20233.4 KiB12973

groupaccess.hH A D22-Aug-20231.5 KiB367

gss-genr.cH A D22-Aug-20238 KiB306211

gss-serv-krb5.cH A D22-Aug-20235.6 KiB212143

gss-serv.cH A D22-Aug-202310.3 KiB405256

hash.cH A D22-Aug-2023623 2815

hmac.cH A D22-Aug-20235.1 KiB198150

hmac.hH A D22-Aug-20231.6 KiB3915

hostfile.cH A D22-Aug-202321.7 KiB835637

hostfile.hH A D22-Aug-20233.8 KiB10961

includes.hH A D22-Aug-20233.9 KiB180136

install-shH A D22-Aug-202313.7 KiB528351

kex.cH A D22-Aug-202325.9 KiB1,044862

kex.hH A D22-Aug-20237.3 KiB240185

kexc25519.cH A D22-Aug-20234.6 KiB13492

kexc25519c.cH A D22-Aug-20235.1 KiB170120

kexc25519s.cH A D22-Aug-20235 KiB159114

kexdh.cH A D22-Aug-20233.3 KiB9762

kexdhc.cH A D22-Aug-20236.1 KiB225177

kexdhs.cH A D22-Aug-20236.1 KiB223169

kexecdh.cH A D22-Aug-20233.5 KiB10166

kexecdhc.cH A D22-Aug-20236.2 KiB223169

kexecdhs.cH A D22-Aug-20235.9 KiB204151

kexgex.cH A D22-Aug-20233.7 KiB10570

kexgexc.cH A D22-Aug-20237.6 KiB271216

kexgexs.cH A D22-Aug-20237.3 KiB256196

krb5_config.hH A D22-Aug-2023315 1210

krl.cH A D22-Aug-202333.9 KiB1,2991,069

krl.hH A D22-Aug-20232.5 KiB6535

log.cH A D22-Aug-202310.7 KiB481370

log.hH A D22-Aug-20232.6 KiB8258

loginrec.cH A D22-Aug-202341.9 KiB1,7251,100

loginrec.hH A D22-Aug-20234.6 KiB13251

logintest.cH A D22-Aug-20238.6 KiB309214

mac.cH A D22-Aug-20237.2 KiB266212

mac.hH A D22-Aug-20232 KiB5424

match.cH A D22-Aug-20239.1 KiB351193

match.hH A D22-Aug-20231.2 KiB3013

md5crypt.cH A D22-Aug-20234 KiB166101

md5crypt.hH A D22-Aug-2023744 238

mdoc2man.awkH A D22-Aug-20238.4 KiB371341

misc.cH A D22-Aug-202343.3 KiB2,0181,560

misc.hH A D22-Aug-20235.7 KiB175126

mkinstalldirsH A D22-Aug-2023633 3923

moduliH A D22-Aug-2023550.2 KiB439438

moduli.5H A D22-Aug-20233.6 KiB128127

moduli.cH A D22-Aug-202320.5 KiB809493

monitor.cH A D22-Aug-202350.6 KiB1,9131,519

monitor.hH A D22-Aug-20233.8 KiB9455

monitor_fdpass.cH A D22-Aug-20234.7 KiB188146

monitor_fdpass.hH A D22-Aug-20231.5 KiB355

monitor_wrap.cH A D22-Aug-202327.4 KiB1,046819

monitor_wrap.hH A D22-Aug-20233.8 KiB10563

msg.cH A D22-Aug-20232.8 KiB9560

msg.hH A D22-Aug-20231.5 KiB336

mux.cH A D22-Aug-202365.9 KiB2,4041,997

myproposal.hH A D22-Aug-20235.4 KiB200149

nchan.cH A D22-Aug-202310.9 KiB415315

nchan.msH A D22-Aug-20233.9 KiB10074

nchan2.msH A D22-Aug-20233.4 KiB8964

opacket.cH A D22-Aug-20235.6 KiB321252

opacket.hH A D22-Aug-20236 KiB155144

openssh.xml.inH A D22-Aug-20232.8 KiB9161

opensshd.init.inH A D22-Aug-20231.9 KiB8964

packet.cH A D22-Aug-202370.8 KiB2,6862,068

packet.hH A D22-Aug-20237.4 KiB223156

pathnames.hH A D22-Aug-20235.7 KiB17469

pkcs11.hH A D22-Aug-202341.4 KiB1,3581,119

platform-misc.cH A D22-Aug-20231.1 KiB3613

platform-pledge.cH A D22-Aug-20231.9 KiB7227

platform-tracing.cH A D22-Aug-20231.7 KiB5229

platform.cH A D22-Aug-20234.7 KiB199128

platform.hH A D22-Aug-20231.4 KiB3817

poly1305.cH A D22-Aug-20234.5 KiB161121

poly1305.hH A D22-Aug-2023645 2311

progressmeter.cH A D22-Aug-20237.5 KiB307220

progressmeter.hH A D22-Aug-20231.4 KiB282

readconf.cH A D22-Aug-202379.4 KiB2,7642,283

readconf.hH A D22-Aug-20237.8 KiB222159

readpass.cH A D22-Aug-20235 KiB193138

rijndael.cH A D22-Aug-202351.6 KiB1,1301,009

rijndael.hH A D22-Aug-20232.1 KiB5721

sandbox-capsicum.cH A D22-Aug-20233.4 KiB12781

sandbox-darwin.cH A D22-Aug-20232.5 KiB10058

sandbox-null.cH A D22-Aug-20231.6 KiB7336

sandbox-pledge.cH A D22-Aug-20231.8 KiB7847

sandbox-rlimit.cH A D22-Aug-20232.4 KiB9759

sandbox-seccomp-filter.cH A D22-Aug-20239.8 KiB377293

sandbox-solaris.cH A D22-Aug-20232.9 KiB11577

sandbox-systrace.cH A D22-Aug-20236.3 KiB220164

sc25519.cH A D22-Aug-20237.2 KiB309255

sc25519.hH A D22-Aug-20232.8 KiB8146

scp.1H A D22-Aug-20235.5 KiB248247

scp.cH A D22-Aug-202339.1 KiB1,7061,393

servconf.cH A D22-Aug-202379.2 KiB2,7042,324

servconf.hH A D22-Aug-202310 KiB280193

serverloop.cH A D22-Aug-202326 KiB922684

serverloop.hH A D22-Aug-20231,000 295

session.cH A D22-Aug-202365 KiB2,6571,961

session.hH A D22-Aug-20232.6 KiB8447

sftp-client.cH A D22-Aug-202349.6 KiB1,9211,566

sftp-client.hH A D22-Aug-20234.3 KiB14353

sftp-common.cH A D22-Aug-20236.8 KiB260206

sftp-common.hH A D22-Aug-20232 KiB5319

sftp-glob.cH A D22-Aug-20233.4 KiB15195

sftp-server-main.cH A D22-Aug-20231.5 KiB5428

sftp-server.8H A D22-Aug-20235 KiB171170

sftp-server.cH A D22-Aug-202342.4 KiB1,7111,454

sftp.1H A D22-Aug-202314.5 KiB631630

sftp.cH A D22-Aug-202359.7 KiB2,5662,113

sftp.hH A D22-Aug-20233.3 KiB10255

smult_curve25519_ref.cH A D22-Aug-20236.7 KiB266227

ssh-add.1H A D22-Aug-20236.5 KiB212211

ssh-add.cH A D22-Aug-202317.5 KiB684563

ssh-agent.1H A D22-Aug-20237.2 KiB235234

ssh-agent.cH A D22-Aug-202333.2 KiB1,3681,135

ssh-dss.cH A D22-Aug-20235.6 KiB210158

ssh-ecdsa.cH A D22-Aug-20235.5 KiB203151

ssh-ed25519.cH A D22-Aug-20234.2 KiB168134

ssh-gss.hH A D22-Aug-20234.7 KiB14192

ssh-keygen.1H A D22-Aug-202326 KiB892891

ssh-keygen.cH A D22-Aug-202377 KiB2,8872,484

ssh-keyscan.1H A D22-Aug-20233.8 KiB159158

ssh-keyscan.cH A D22-Aug-202317.8 KiB808681

ssh-keysign.8H A D22-Aug-20232.9 KiB9493

ssh-keysign.cH A D22-Aug-20238.3 KiB304224

ssh-pkcs11-client.cH A D22-Aug-20236.7 KiB270219

ssh-pkcs11-helper.8H A D22-Aug-20231.3 KiB4443

ssh-pkcs11-helper.cH A D22-Aug-20239.8 KiB403322

ssh-pkcs11.cH A D22-Aug-202319.6 KiB733613

ssh-pkcs11.hH A D22-Aug-20231.1 KiB257

ssh-rsa.cH A D22-Aug-202311.9 KiB450359

ssh-sandbox.hH A D22-Aug-20231.1 KiB256

ssh-xmss.cH A D22-Aug-20235 KiB193159

ssh.1H A D22-Aug-202344.1 KiB1,7021,701

ssh.cH A D22-Aug-202360.9 KiB2,1351,639

ssh.hH A D22-Aug-20232.6 KiB9619

ssh2.hH A D22-Aug-20235.7 KiB17578

ssh_api.cH A D22-Aug-202313.8 KiB541430

ssh_api.hH A D22-Aug-20234.3 KiB13831

ssh_configH A D22-Aug-20231.5 KiB5045

ssh_config.5H A D22-Aug-202350.7 KiB1,8021,801

ssh_namespace.hH A D22-Aug-202343.9 KiB859854

sshbuf-getput-basic.cH A D22-Aug-202311.8 KiB566462

sshbuf-getput-crypto.cH A D22-Aug-20235.6 KiB225179

sshbuf-misc.cH A D22-Aug-20233.5 KiB162129

sshbuf.cH A D22-Aug-20239 KiB400314

sshbuf.hH A D22-Aug-202312.2 KiB372173

sshconnect.cH A D22-Aug-202343.7 KiB1,5771,229

sshconnect.hH A D22-Aug-20232.3 KiB6023

sshconnect2.cH A D22-Aug-202358.3 KiB2,1321,709

sshd.8H A D22-Aug-202330.9 KiB1,0041,003

sshd.cH A D22-Aug-202364.6 KiB2,4331,755

sshd_configH A D22-Aug-20233.2 KiB12297

sshd_config.5H A D22-Aug-202350.1 KiB1,8371,836

ssherr.cH A D22-Aug-20235 KiB148129

ssherr.hH A D22-Aug-20233.3 KiB8863

sshkey-xmss.cH A D22-Aug-202328.2 KiB1,056919

sshkey-xmss.hH A D22-Aug-20232.9 KiB5728

sshkey.cH A D22-Aug-2023101.2 KiB4,1003,596

sshkey.hH A D22-Aug-202310.1 KiB277212

sshlogin.cH A D22-Aug-20235.2 KiB17196

sshlogin.hH A D22-Aug-2023935 248

sshpty.cH A D22-Aug-20235.6 KiB230162

sshpty.hH A D22-Aug-20231 KiB2910

sshtty.cH A D22-Aug-20232.9 KiB9752

survey.sh.inH A D22-Aug-20231.7 KiB7049

ttymodes.cH A D22-Aug-202310.1 KiB457334

ttymodes.hH A D22-Aug-20234.9 KiB170104

uidswap.cH A D22-Aug-20237.1 KiB237156

uidswap.hH A D22-Aug-2023680 183

umac.cH A D22-Aug-202344.9 KiB1,283769

umac.hH A D22-Aug-20234.6 KiB13042

umac128.cH A D22-Aug-2023414 1912

utf8.cH A D22-Aug-20238.1 KiB341228

utf8.hH A D22-Aug-20231.2 KiB268

uuencode.cH A D22-Aug-20232.9 KiB9649

uuencode.hH A D22-Aug-20231.5 KiB303

verify.cH A D22-Aug-2023668 5040

version.hH A D22-Aug-2023379 169

xmalloc.cH A D22-Aug-20232.4 KiB11985

xmalloc.hH A D22-Aug-20231.1 KiB289

xmss_commons.cH A D22-Aug-2023630 3725

xmss_commons.hH A D22-Aug-2023450 2213

xmss_fast.cH A D22-Aug-202332.2 KiB1,107734

xmss_fast.hH A D22-Aug-20233.6 KiB11250

xmss_hash.cH A D22-Aug-20233.4 KiB141100

xmss_hash.hH A D22-Aug-2023841 2311

xmss_hash_address.cH A D22-Aug-20231.2 KiB6742

xmss_hash_address.hH A D22-Aug-2023836 4115

xmss_wots.cH A D22-Aug-20234.7 KiB193135

xmss_wots.hH A D22-Aug-20231.9 KiB6521

README

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

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.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
39If you are using the IBM compiler you probably want to use CC=xlc rather
40than the default of cc.
41
42
43Cygwin
44------
45To build on Cygwin, OpenSSH requires the following packages:
46gcc, gcc-mingw-core, mingw-runtime, binutils, make, openssl,
47openssl-devel, zlib, minres, minires-devel.
48
49
50Darwin and MacOS X
51------------------
52Darwin does not provide a tun(4) driver required for OpenSSH-based
53virtual private networks. The BSD manpage still exists, but the driver
54has been removed in recent releases of Darwin and MacOS X.
55
56Nevertheless, tunnel support is known to work with Darwin 8 and
57MacOS X 10.4 in Point-to-Point (Layer 3) and Ethernet (Layer 2) mode
58using a third party driver. More information is available at:
59	http://www-user.rhrk.uni-kl.de/~nissler/tuntap/
60
61
62Linux
63-----
64
65Some Linux distributions (including Red Hat/Fedora/CentOS) include
66headers and library links in the -devel RPMs rather than the main
67binary RPMs. If you get an error about headers, or complaining about a
68missing prerequisite then you may need to install the equivalent
69development packages.  On Redhat based distros these may be openssl-devel,
70zlib-devel and pam-devel, on Debian based distros these may be
71libssl-dev, libz-dev and libpam-dev.
72
73
74Solaris
75-------
76If you enable BSM auditing on Solaris, you need to update audit_event(4)
77for praudit(1m) to give sensible output.  The following line needs to be
78added to /etc/security/audit_event:
79
80	32800:AUE_openssh:OpenSSH login:lo
81
82The BSM audit event range available for third party TCB applications is
8332768 - 65535.  Event number 32800 has been chosen for AUE_openssh.
84There is no official registry of 3rd party event numbers, so if this
85number is already in use on your system, you may change it at build time
86by configure'ing --with-cflags=-DAUE_openssh=32801 then rebuilding.
87
88
89Platforms using PAM
90-------------------
91As of OpenSSH 4.3p1, sshd will no longer check /etc/nologin itself when
92PAM is enabled.  To maintain existing behaviour, pam_nologin should be
93added to sshd's session stack which will prevent users from starting shell
94sessions.  Alternatively, pam_nologin can be added to either the auth or
95account stacks which will prevent authentication entirely, but will still
96return the output from pam_nologin to the client.
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
11When privsep is enabled, during the pre-authentication phase sshd will
12chroot(2) to "/var/empty" and change its privileges to the "sshd" user
13and its primary group.  sshd is a pseudo-account that should not be
14used by other daemons, and must be locked and should contain a
15"nologin" or invalid shell.
16
17You should do something like the following to prepare the privsep
18preauth environment:
19
20	# mkdir /var/empty
21	# chown root:sys /var/empty
22	# chmod 755 /var/empty
23	# groupadd sshd
24	# useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd
25
26/var/empty should not contain any files.
27
28configure supports the following options to change the default
29privsep user and chroot directory:
30
31  --with-privsep-path=xxx Path for privilege separation chroot
32  --with-privsep-user=user Specify non-privileged user for privilege separation
33
34PAM-enabled OpenSSH is known to function with privsep on AIX, FreeBSD,
35HP-UX (including Trusted Mode), Linux, NetBSD and Solaris.
36
37On Cygwin, Tru64 Unix and OpenServer only the pre-authentication part
38of privsep is supported.  Post-authentication privsep is disabled
39automatically (so you won't see the additional process mentioned below).
40
41Note that for a normal interactive login with a shell, enabling privsep
42will require 1 additional process per login session.
43
44Given the following process listing (from HP-UX):
45
46     UID   PID  PPID  C    STIME TTY       TIME COMMAND
47    root  1005     1  0 10:45:17 ?         0:08 /opt/openssh/sbin/sshd -u0
48    root  6917  1005  0 15:19:16 ?         0:00 sshd: stevesk [priv]
49 stevesk  6919  6917  0 15:19:17 ?         0:03 sshd: stevesk@2
50 stevesk  6921  6919  0 15:19:17 pts/2     0:00 -bash
51
52process 1005 is the sshd process listening for new connections.
53process 6917 is the privileged monitor process, 6919 is the user owned
54sshd process and 6921 is the shell process.
55

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 ... [email protected]
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