NameDateSize

..20-Dec-20166

.skipped-commit-idsH A D03-Sep-2017807

aclocal.m4H A D03-Sep-20175.4 KiB

addrmatch.cH A D03-Sep-201710.9 KiB

atomicio.cH A D03-Sep-20174.4 KiB

atomicio.hH A D18-Aug-20162.1 KiB

audit-bsm.cH A D03-Sep-201711.8 KiB

audit-linux.cH A D03-Sep-20173.5 KiB

audit.cH A D03-Sep-20175.7 KiB

audit.hH A D03-Sep-20172.3 KiB

auth-bsdauth.cH A D18-Aug-20163.6 KiB

auth-krb5.cH A D03-Sep-20176.9 KiB

auth-options.cH A D03-Sep-201716.7 KiB

auth-options.hH A D03-Sep-20171.3 KiB

auth-pam.cH A D03-Sep-201731.7 KiB

auth-pam.hH A D03-Sep-20171.9 KiB

auth-passwd.cH A D03-Sep-20176.4 KiB

auth-rhosts.cH A D03-Sep-20178.9 KiB

auth-shadow.cH A D18-Aug-20164.2 KiB

auth-sia.cH A D18-Aug-20163.1 KiB

auth-sia.hH A D18-Aug-20161.4 KiB

auth-skey.cH A D18-Aug-20162.8 KiB

auth.cH A D03-Sep-201723.7 KiB

auth.hH A D03-Sep-20176.9 KiB

auth2-chall.cH A D03-Sep-20179.2 KiB

auth2-gss.cH A D18-Aug-20168 KiB

auth2-hostbased.cH A D03-Sep-20177.3 KiB

auth2-kbdint.cH A D18-Aug-20162.1 KiB

auth2-none.cH A D18-Aug-20162.2 KiB

auth2-passwd.cH A D18-Aug-20162.4 KiB

auth2-pubkey.cH A D03-Sep-201730.1 KiB

auth2.cH A D03-Jul-202017.1 KiB

authfd.cH A D18-Aug-201617.9 KiB

authfd.hH A D18-Aug-20163.1 KiB

authfile.cH A D03-Sep-201714.3 KiB

authfile.hH A D18-Aug-20162.3 KiB

bitmap.cH A D18-Aug-20164.4 KiB

bitmap.hH A D18-Aug-20161.8 KiB

blacklist.cH A D18-May-20172.8 KiB

blacklist_client.hH A D18-May-20172.1 KiB

blocks.cH A D18-Aug-20166.5 KiB

bufaux.cH A D18-Aug-20165.1 KiB

bufbn.cH A D18-Aug-20162.5 KiB

bufec.cH A D18-Aug-20161.9 KiB

buffer.cH A D18-Aug-20162.6 KiB

buffer.hH A D18-Aug-20163.5 KiB

buildpkg.sh.inH A D03-Sep-201717.6 KiB

canohost.cH A D03-Sep-20174.7 KiB

canohost.hH A D03-Sep-2017842

chacha.cH A D18-Aug-20165.3 KiB

chacha.hH A D03-Sep-20171,000

ChangeLogH A D03-Sep-2017279.7 KiB

channels.cH A D03-Sep-2017124.9 KiB

channels.hH A D03-Sep-201711.9 KiB

cipher-3des1.cH A D03-Sep-20174.3 KiB

cipher-aes.cH A D18-Aug-20164.5 KiB

cipher-aesctr.cH A D03-Sep-20172.1 KiB

cipher-aesctr.hH A D03-Sep-20171.3 KiB

cipher-bf1.cH A D03-Sep-20172.8 KiB

cipher-chachapoly.cH A D03-Sep-20173.7 KiB

cipher-chachapoly.hH A D18-Aug-20161.6 KiB

cipher-ctr.cH A D18-Aug-20163.6 KiB

cipher.cH A D03-Sep-201718.2 KiB

cipher.hH A D03-Sep-20174.3 KiB

cleanup.cH A D18-Aug-20161 KiB

clientloop.cH A D03-Sep-201776.4 KiB

clientloop.hH A D03-Sep-20173.5 KiB

compat.cH A D03-Sep-20178.7 KiB

compat.hH A D18-Aug-20162.9 KiB

config.guessH A D03-Sep-201742.7 KiB

config.hH A D03-Sep-201748.2 KiB

config.subH A D03-Sep-201735.5 KiB

configure.acH A D03-Sep-2017140.8 KiB

contrib/H03-Sep-201717

crc32.cH A D18-Aug-20164.9 KiB

crc32.hH A D18-Aug-20161.4 KiB

CREDITSH A D03-Sep-20175.4 KiB

crypto_api.hH A D18-Aug-20161.3 KiB

deattack.cH A D18-Aug-20164.1 KiB

deattack.hH A D18-Aug-20161 KiB

defines.hH A D03-Sep-201721.7 KiB

dh.cH A D03-Sep-201714.6 KiB

dh.hH A D03-Sep-20172.6 KiB

digest-libc.cH A D18-Aug-20165.9 KiB

digest-openssl.cH A D03-Sep-20175 KiB

digest.hH A D18-Aug-20162.5 KiB

dispatch.cH A D18-Aug-20163.7 KiB

dispatch.hH A D18-Aug-20162.3 KiB

dns.cH A D18-Aug-20169 KiB

dns.hH A D18-Aug-20162 KiB

ed25519.cH A D18-Aug-20163.1 KiB

entropy.cH A D18-Aug-20166.1 KiB

entropy.hH A D03-Sep-20171.5 KiB

fatal.cH A D18-Aug-20161.6 KiB

fe25519.cH A D18-Aug-20168.1 KiB

fe25519.hH A D18-Aug-20162.3 KiB

fixalgorithmsH A D18-Aug-2016422

fixpathsH A D18-Aug-2016499

fixprogsH A D18-Aug-20161.6 KiB

freebsd-configure.shH A D04-Jan-20201.1 KiB

freebsd-post-merge.shH A D18-Aug-2016224

freebsd-pre-merge.shH A D18-Aug-2016429

FREEBSD-upgradeH A D18-Aug-20165.6 KiB

FREEBSD-vendorH A D18-Aug-2016131

ge25519.cH A D18-Aug-201611 KiB

ge25519.hH A D18-Aug-20161.4 KiB

ge25519_base.dataH A D18-Aug-2016164.6 KiB

groupaccess.cH A D18-Aug-20163.4 KiB

groupaccess.hH A D18-Aug-20161.5 KiB

gss-genr.cH A D03-Sep-20177.3 KiB

gss-serv-krb5.cH A D18-Aug-20165.6 KiB

gss-serv.cH A D18-Aug-201610.1 KiB

hash.cH A D18-Aug-20161.8 KiB

hmac.cH A D18-Aug-20165.1 KiB

hmac.hH A D18-Aug-20161.6 KiB

hostfile.cH A D03-Sep-201722.3 KiB

hostfile.hH A D18-Aug-20163.8 KiB

includes.hH A D18-Aug-20163.8 KiB

INSTALLH A D03-Sep-20179.6 KiB

install-shH A D18-Aug-20165.5 KiB

kex.cH A D03-Sep-201725.9 KiB

kex.hH A D03-Sep-20177.3 KiB

kexc25519.cH A D03-Sep-20174.6 KiB

kexc25519c.cH A D18-Aug-20165.1 KiB

kexc25519s.cH A D18-Aug-20165 KiB

kexdh.cH A D03-Sep-20173.2 KiB

kexdhc.cH A D03-Sep-20176 KiB

kexdhs.cH A D03-Sep-20176.1 KiB

kexecdh.cH A D18-Aug-20163.5 KiB

kexecdhc.cH A D18-Aug-20166.3 KiB

kexecdhs.cH A D18-Aug-20166 KiB

kexgex.cH A D18-Aug-20163.6 KiB

kexgexc.cH A D03-Sep-20177.6 KiB

kexgexs.cH A D03-Sep-20177.2 KiB

key.cH A D03-Sep-20178.4 KiB

key.hH A D03-Sep-20174 KiB

krb5_config.hH A D18-Aug-2016315

krl.cH A D03-Sep-201733.9 KiB

krl.hH A D18-Aug-20162.5 KiB

LICENCEH A D18-Aug-201615.7 KiB

log.cH A D03-Sep-201710.6 KiB

log.hH A D03-Sep-20172.6 KiB

loginrec.cH A D18-Aug-201642 KiB

loginrec.hH A D18-Aug-20164.6 KiB

logintest.cH A D18-Aug-20168.6 KiB

mac.cH A D03-Sep-20177.5 KiB

mac.hH A D03-Sep-20172 KiB

Makefile.inH A D03-Sep-201725.2 KiB

match.cH A D03-Sep-20178.4 KiB

match.hH A D03-Sep-20171.1 KiB

md-sha256.cH A D18-Aug-20162.2 KiB

md5crypt.cH A D18-Aug-20164 KiB

md5crypt.hH A D03-Sep-2017744

mdoc2man.awkH A D03-Sep-20178.4 KiB

misc.cH A D03-Sep-201727 KiB

misc.hH A D03-Sep-20174.8 KiB

mkinstalldirsH A D18-Aug-2016691

moduliH A D03-Sep-2017540.2 KiB

moduli.5H A D18-Aug-20163.6 KiB

moduli.cH A D03-Sep-201720.5 KiB

monitor.cH A D03-Sep-201743.8 KiB

monitor.hH A D03-Sep-20173.9 KiB

monitor_fdpass.cH A D03-Sep-20174.7 KiB

monitor_fdpass.hH A D18-Aug-20161.5 KiB

monitor_wrap.cH A D03-Sep-201721.9 KiB

monitor_wrap.hH A D03-Sep-20173.6 KiB

msg.cH A D18-Aug-20162.8 KiB

msg.hH A D18-Aug-20161.5 KiB

mux.cH A D03-Sep-201759.6 KiB

myproposal.hH A D03-Sep-20175.4 KiB

nchan.cH A D18-Aug-201612.8 KiB

nchan.msH A D18-Aug-20163.9 KiB

nchan2.msH A D18-Aug-20163.4 KiB

opacket.cH A D18-Aug-20165.8 KiB

opacket.hH A D03-Sep-20176.4 KiB

openbsd-compat/H03-Sep-2017106

openssh.xml.inH A D18-Aug-20162.8 KiB

opensshd.init.inH A D03-Sep-20172 KiB

OVERVIEWH A D18-Aug-20166.5 KiB

packet.cH A D03-Sep-201782.5 KiB

packet.hH A D03-Sep-20177.3 KiB

pathnames.hH A D03-Sep-20175.8 KiB

pkcs11.hH A D18-Aug-201641.4 KiB

platform-pledge.cH A D03-Sep-20171.9 KiB

platform-tracing.cH A D03-Sep-20171.7 KiB

platform.cH A D03-Sep-20175 KiB

platform.hH A D03-Sep-20171.4 KiB

poly1305.cH A D18-Aug-20164.5 KiB

poly1305.hH A D18-Aug-2016645

progressmeter.cH A D03-Sep-20177.5 KiB

progressmeter.hH A D18-Aug-20161.4 KiB

PROTOCOLH A D03-Sep-201716.4 KiB

PROTOCOL.agentH A D03-Sep-201718.3 KiB

PROTOCOL.certkeysH A D03-Sep-201711.1 KiB

PROTOCOL.chacha20poly1305H A D03-Sep-20174.5 KiB

PROTOCOL.keyH A D18-Aug-20161.5 KiB

PROTOCOL.krlH A D18-Aug-20165 KiB

PROTOCOL.muxH A D18-Aug-20166.1 KiB

readconf.cH A D03-Sep-201778.7 KiB

readconf.hH A D03-Sep-20177.9 KiB

READMEH A D03-Sep-20172.6 KiB

README.dnsH A D18-Aug-20161.6 KiB

README.platformH A D03-Sep-20174 KiB

README.privsepH A D03-Sep-20172.3 KiB

README.tunH A D18-Aug-20164.8 KiB

readpass.cH A D18-Aug-20165 KiB

regress/H03-Sep-201799

rijndael.cH A D18-Aug-201651.6 KiB

rijndael.hH A D18-Aug-20162.1 KiB

rsa.cH A D18-Aug-20165 KiB

rsa.hH A D18-Aug-2016864

sandbox-capsicum.cH A D18-Aug-20163.3 KiB

sandbox-darwin.cH A D03-Sep-20172.5 KiB

sandbox-null.cH A D18-Aug-20161.6 KiB

sandbox-pledge.cH A D03-Sep-20171.8 KiB

sandbox-rlimit.cH A D03-Sep-20172.4 KiB

sandbox-seccomp-filter.cH A D03-Sep-20179.5 KiB

sandbox-solaris.cH A D03-Sep-20172.7 KiB

sandbox-systrace.cH A D18-Aug-20166.2 KiB

sc25519.cH A D18-Aug-20167.2 KiB

sc25519.hH A D18-Aug-20162.8 KiB

scp.1H A D03-Sep-20175.1 KiB

scp.cH A D03-Oct-201931.8 KiB

servconf.cH A D03-Sep-201771 KiB

servconf.hH A D03-Sep-20179.6 KiB

serverloop.cH A D03-Sep-201724.3 KiB

serverloop.hH A D03-Sep-2017976

session.cH A D03-Sep-201762.2 KiB

session.hH A D03-Sep-20172.6 KiB

sftp-client.cH A D03-Sep-201749.2 KiB

sftp-client.hH A D18-Aug-20164.3 KiB

sftp-common.cH A D03-Sep-20176.9 KiB

sftp-common.hH A D18-Aug-20162 KiB

sftp-glob.cH A D18-Aug-20163.4 KiB

sftp-server-main.cH A D18-Aug-20161.5 KiB

sftp-server.8H A D18-Aug-20165 KiB

sftp-server.cH A D14-Dec-201942.3 KiB

sftp.1H A D03-Sep-201714.5 KiB

sftp.cH A D03-Sep-201757.4 KiB

sftp.hH A D18-Aug-20163.3 KiB

smult_curve25519_ref.cH A D18-Aug-20166.7 KiB

ssh-add.1H A D18-Aug-20166.6 KiB

ssh-add.cH A D18-Aug-201615.7 KiB

ssh-agent.1H A D03-Sep-20177.2 KiB

ssh-agent.cH A D03-Sep-201737.3 KiB

ssh-dss.cH A D03-Sep-20175.8 KiB

ssh-ecdsa.cH A D03-Sep-20175.2 KiB

ssh-ed25519.cH A D03-Sep-20174.2 KiB

ssh-gss.hH A D18-Aug-20164.6 KiB

ssh-keygen.1H A D03-Sep-201726.1 KiB

ssh-keygen.cH A D03-Sep-201772.8 KiB

ssh-keyscan.1H A D18-Aug-20164.3 KiB

ssh-keyscan.cH A D03-Sep-201719.2 KiB

ssh-keysign.8H A D18-Aug-20162.9 KiB

ssh-keysign.cH A D18-Aug-20168.4 KiB

ssh-pkcs11-client.cH A D18-Aug-20165.2 KiB

ssh-pkcs11-helper.8H A D18-Aug-20161.3 KiB

ssh-pkcs11-helper.cH A D18-Aug-20168 KiB

ssh-pkcs11.cH A D03-Sep-201718.8 KiB

ssh-pkcs11.hH A D18-Aug-20161.1 KiB

ssh-rsa.cH A D03-Sep-20179.3 KiB

ssh-sandbox.hH A D18-Aug-20161.1 KiB

ssh.1H A D03-Sep-201744 KiB

ssh.cH A D12-Oct-201863.6 KiB

ssh.hH A D18-Aug-20162.9 KiB

ssh1.hH A D03-Sep-20174.1 KiB

ssh2.hH A D03-Sep-20175.7 KiB

ssh_api.cH A D03-Sep-201713.8 KiB

ssh_api.hH A D18-Aug-20164.3 KiB

ssh_configH A D03-Sep-20171.7 KiB

ssh_config.5H A D03-Sep-201750.6 KiB

ssh_namespace.hH A D03-Sep-201747.5 KiB

sshbuf-getput-basic.cH A D03-Sep-20179.2 KiB

sshbuf-getput-crypto.cH A D03-Sep-20175.6 KiB

sshbuf-misc.cH A D03-Sep-20173.5 KiB

sshbuf.cH A D03-Sep-20179.3 KiB

sshbuf.hH A D03-Sep-201711.8 KiB

sshconnect.cH A D03-Sep-201742.4 KiB

sshconnect.hH A D18-Aug-20162.7 KiB

sshconnect1.cH A D03-Sep-201722.3 KiB

sshconnect2.cH A D03-Sep-201751.9 KiB

sshd.8H A D03-Sep-201729.7 KiB

sshd.cH A D12-Oct-201860.4 KiB

sshd_configH A D03-Sep-20173.3 KiB

sshd_config.5H A D03-Sep-201746.6 KiB

ssherr.cH A D03-Sep-20174.8 KiB

ssherr.hH A D03-Sep-20173.2 KiB

sshkey.cH A D03-Sep-201797.7 KiB

sshkey.hH A D03-Sep-20178.1 KiB

sshlogin.cH A D18-Aug-20165.1 KiB

sshlogin.hH A D18-Aug-2016935

sshpty.cH A D03-Sep-20176.1 KiB

sshpty.hH A D03-Sep-20171 KiB

sshtty.cH A D18-Aug-20162.9 KiB

survey.sh.inH A D18-Aug-20161.7 KiB

TODOH A D03-Sep-20172.5 KiB

ttymodes.cH A D03-Sep-201710.4 KiB

ttymodes.hH A D03-Sep-20175.3 KiB

uidswap.cH A D18-Aug-20167.9 KiB

uidswap.hH A D18-Aug-2016716

umac.cH A D18-Aug-201645.5 KiB

umac.hH A D18-Aug-20164.6 KiB

umac128.cH A D18-Aug-2016316

utf8.cH A D03-Sep-20177.8 KiB

utf8.hH A D03-Sep-20171.2 KiB

uuencode.cH A D18-Aug-20162.9 KiB

uuencode.hH A D18-Aug-20161.5 KiB

verify.cH A D18-Aug-2016668

version.hH A D12-Oct-2018451

xmalloc.cH A D18-Aug-20162.1 KiB

xmalloc.hH A D18-Aug-20161 KiB

README

1See https://www.openssh.com/releasenotes.html#7.5p1 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 http://www.unixuser.org/~haruyama/security/openssh/index.html
9- Thanks to HARUYAMA Seigo <haruyama@unixuser.org>
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, Unicos, 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].
34
35There is now several mailing lists for this port of OpenSSH. Please
36refer to https://www.openssh.com/list.html for details on how to join.
37
38Please send bug reports and patches to the mailing list
39openssh-unix-dev@mindrot.org. The list is open to posting by unsubscribed
40users.  Code contribution are welcomed, but please follow the OpenBSD
41style guidelines[6].
42
43Please refer to the INSTALL document for information on how to install
44OpenSSH on your system.
45
46Damien Miller <djm@mindrot.org>
47
48Miscellania -
49
50This version of OpenSSH is based upon code retrieved from the OpenBSD
51CVS repository which in turn was based on the last free sample
52implementation released by Tatu Ylonen.
53
54References -
55
56[0] https://www.openssh.com/
57[1] http://www.lothar.com/tech/crypto/
58[2] http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/prngd.html
59[3] http://www.gzip.org/zlib/
60[4] http://www.openssl.org/
61[5] http://www.openpam.org
62    http://www.kernel.org/pub/linux/libs/pam/
63    (PAM also is standard on Solaris and HP-UX 11)
64[6] http://man.openbsd.org/style.9
65

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 choosen 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, OpenServer, and Unicos only the pre-authentication
38part of 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 ... 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