Merge "Merge commit 'bf944e3794eff5413f2df1ef37cddf96918c6bde' into HEAD"
tree: 6a4709841e622abaad951691e859a4ef59044903
  1. .github/
  2. contrib/
  3. m4/
  4. openbsd-compat/
  5. prebuilt-intermediates/
  6. regress/
  7. .depend
  8. .gitignore
  9. .skipped-commit-ids
  10. addr.c
  11. addr.h
  12. addrmatch.c
  13. Android.bp
  14. atomicio.c
  15. atomicio.h
  16. audit-bsm.c
  17. audit-linux.c
  18. audit.c
  19. audit.h
  20. auth-bsdauth.c
  21. auth-krb5.c
  22. auth-options.c
  23. auth-options.h
  24. auth-pam.c
  25. auth-pam.h
  26. auth-passwd.c
  27. auth-rhosts.c
  28. auth-shadow.c
  29. auth-sia.c
  30. auth-sia.h
  31. auth.c
  32. auth.h
  33. auth2-chall.c
  34. auth2-gss.c
  35. auth2-hostbased.c
  36. auth2-kbdint.c
  37. auth2-none.c
  38. auth2-passwd.c
  39. auth2-pubkey.c
  40. auth2.c
  41. authfd.c
  42. authfd.h
  43. authfile.c
  44. authfile.h
  45. bitmap.c
  46. bitmap.h
  47. buildpkg.sh.in
  48. canohost.c
  49. canohost.h
  50. chacha.c
  51. chacha.h
  52. channels.c
  53. channels.h
  54. cipher-aes.c
  55. cipher-aesctr.c
  56. cipher-aesctr.h
  57. cipher-chachapoly-libcrypto.c
  58. cipher-chachapoly.c
  59. cipher-chachapoly.h
  60. cipher-ctr.c
  61. cipher.c
  62. cipher.h
  63. cleanup.c
  64. clientloop.c
  65. clientloop.h
  66. compat.c
  67. compat.h
  68. config.guess
  69. config.sub
  70. configure.ac
  71. CREDITS
  72. crypto_api.h
  73. defines.h
  74. dh.c
  75. dh.h
  76. digest-libc.c
  77. digest-openssl.c
  78. digest.h
  79. dispatch.c
  80. dispatch.h
  81. dns.c
  82. dns.h
  83. ed25519.c
  84. entropy.c
  85. entropy.h
  86. fatal.c
  87. fe25519.c
  88. fe25519.h
  89. fixalgorithms
  90. fixpaths
  91. ge25519.c
  92. ge25519.h
  93. ge25519_base.data
  94. groupaccess.c
  95. groupaccess.h
  96. gss-genr.c
  97. gss-serv-krb5.c
  98. gss-serv.c
  99. hash.c
  100. hmac.c
  101. hmac.h
  102. hostfile.c
  103. hostfile.h
  104. includes.h
  105. INSTALL
  106. install-sh
  107. int32_minmax.inc
  108. kex.c
  109. kex.h
  110. kexc25519.c
  111. kexdh.c
  112. kexecdh.c
  113. kexgen.c
  114. kexgex.c
  115. kexgexc.c
  116. kexgexs.c
  117. kexsntrup761x25519.c
  118. krl.c
  119. krl.h
  120. LICENCE
  121. log.c
  122. log.h
  123. loginrec.c
  124. loginrec.h
  125. logintest.c
  126. mac.c
  127. mac.h
  128. Makefile.in
  129. match.c
  130. match.h
  131. md5crypt.c
  132. md5crypt.h
  133. mdoc2man.awk
  134. METADATA
  135. misc.c
  136. misc.h
  137. mkinstalldirs
  138. moduli
  139. moduli.5
  140. moduli.c
  141. monitor.c
  142. monitor.h
  143. monitor_fdpass.c
  144. monitor_fdpass.h
  145. monitor_wrap.c
  146. monitor_wrap.h
  147. msg.c
  148. msg.h
  149. mux.c
  150. myproposal.h
  151. nchan.c
  152. nchan.ms
  153. nchan2.ms
  154. openssh.xml.in
  155. opensshd.init.in
  156. OVERVIEW
  157. OWNERS
  158. packet.c
  159. packet.h
  160. pathnames.h
  161. pkcs11.h
  162. platform-misc.c
  163. platform-pledge.c
  164. platform-tracing.c
  165. platform.c
  166. platform.h
  167. poly1305.c
  168. poly1305.h
  169. progressmeter.c
  170. progressmeter.h
  171. PROTOCOL
  172. PROTOCOL.agent
  173. PROTOCOL.certkeys
  174. PROTOCOL.chacha20poly1305
  175. PROTOCOL.key
  176. PROTOCOL.krl
  177. PROTOCOL.mux
  178. PROTOCOL.sshsig
  179. PROTOCOL.u2f
  180. readconf.c
  181. readconf.h
  182. README
  183. README.dns
  184. README.md
  185. README.platform
  186. README.privsep
  187. README.tun
  188. README.version
  189. readpass.c
  190. rijndael.c
  191. rijndael.h
  192. sandbox-capsicum.c
  193. sandbox-darwin.c
  194. sandbox-null.c
  195. sandbox-pledge.c
  196. sandbox-rlimit.c
  197. sandbox-seccomp-filter.c
  198. sandbox-solaris.c
  199. sandbox-systrace.c
  200. sc25519.c
  201. sc25519.h
  202. scp.1
  203. scp.c
  204. servconf.c
  205. servconf.h
  206. serverloop.c
  207. serverloop.h
  208. session.c
  209. session.h
  210. sftp-client.c
  211. sftp-client.h
  212. sftp-common.c
  213. sftp-common.h
  214. sftp-glob.c
  215. sftp-realpath.c
  216. sftp-server-main.c
  217. sftp-server.8
  218. sftp-server.c
  219. sftp.1
  220. sftp.c
  221. sftp.h
  222. sk-api.h
  223. sk-usbhid.c
  224. smult_curve25519_ref.c
  225. sntrup761.c
  226. sntrup761.sh
  227. srclimit.c
  228. srclimit.h
  229. ssh-add.1
  230. ssh-add.c
  231. ssh-agent.1
  232. ssh-agent.c
  233. ssh-dss.c
  234. ssh-ecdsa-sk.c
  235. ssh-ecdsa.c
  236. ssh-ed25519-sk.c
  237. ssh-ed25519.c
  238. ssh-gss.h
  239. ssh-keygen.1
  240. ssh-keygen.c
  241. ssh-keyscan.1
  242. ssh-keyscan.c
  243. ssh-keysign.8
  244. ssh-keysign.c
  245. ssh-pkcs11-client.c
  246. ssh-pkcs11-helper.8
  247. ssh-pkcs11-helper.c
  248. ssh-pkcs11.c
  249. ssh-pkcs11.h
  250. ssh-rsa.c
  251. ssh-sandbox.h
  252. ssh-sk-client.c
  253. ssh-sk-helper.8
  254. ssh-sk-helper.c
  255. ssh-sk.c
  256. ssh-sk.h
  257. ssh-xmss.c
  258. ssh.1
  259. ssh.c
  260. ssh.h
  261. ssh2.h
  262. ssh_api.c
  263. ssh_api.h
  264. ssh_config
  265. ssh_config.5
  266. sshbuf-getput-basic.c
  267. sshbuf-getput-crypto.c
  268. sshbuf-io.c
  269. sshbuf-misc.c
  270. sshbuf.c
  271. sshbuf.h
  272. sshconnect.c
  273. sshconnect.h
  274. sshconnect2.c
  275. sshd.8
  276. sshd.c
  277. sshd_config
  278. sshd_config.5
  279. sshd_config.android
  280. ssherr.c
  281. ssherr.h
  282. sshkey-xmss.c
  283. sshkey-xmss.h
  284. sshkey.c
  285. sshkey.h
  286. sshlogin.c
  287. sshlogin.h
  288. sshpty.c
  289. sshpty.h
  290. sshsig.c
  291. sshsig.h
  292. sshtty.c
  293. start-ssh
  294. survey.sh.in
  295. TODO
  296. ttymodes.c
  297. ttymodes.h
  298. uidswap.c
  299. uidswap.h
  300. umac.c
  301. umac.h
  302. umac128.c
  303. utf8.c
  304. utf8.h
  305. verify.c
  306. version.h
  307. xmalloc.c
  308. xmalloc.h
  309. xmss_commons.c
  310. xmss_commons.h
  311. xmss_fast.c
  312. xmss_fast.h
  313. xmss_hash.c
  314. xmss_hash.h
  315. xmss_hash_address.c
  316. xmss_hash_address.h
  317. xmss_wots.c
  318. xmss_wots.h
README.md

Portable OpenSSH

C/C++ CI Fuzzing Status

OpenSSH is a complete implementation of the SSH protocol (version 2) for secure remote login, command execution and file transfer. It includes a client ssh and server sshd, file transfer utilities scp and sftp as well as tools for key generation (ssh-keygen), run-time key storage (ssh-agent) and a number of supporting programs.

This is a port of OpenBSD's OpenSSH to most Unix-like operating systems, including Linux, OS X and Cygwin. Portable OpenSSH polyfills OpenBSD APIs that are not available elsewhere, adds sshd sandboxing for more operating systems and includes support for OS-native authentication and auditing (e.g. using PAM).

Documentation

The official documentation for OpenSSH are the man pages for each tool:

Stable Releases

Stable release tarballs are available from a number of download mirrors. We recommend the use of a stable release for most users. Please read the release notes for details of recent changes and potential incompatibilities.

Building Portable OpenSSH

Dependencies

Portable OpenSSH is built using autoconf and make. It requires a working C compiler, standard library and headers.

libcrypto from either LibreSSL or OpenSSL may also be used, but OpenSSH may be built without it supporting a subset of crypto algorithms.

zlib is optional; without it transport compression is not supported.

FIDO security token support needs libfido2 and its dependencies. Also, certain platforms and build-time options may require additional dependencies; see README.platform for details.

Building a release

Releases include a pre-built copy of the configure script and may be built using:

tar zxvf openssh-X.YpZ.tar.gz
cd openssh
./configure # [options]
make && make tests

See the Build-time Customisation section below for configure options. If you plan on installing OpenSSH to your system, then you will usually want to specify destination paths.

Building from git

If building from git, you'll need autoconf installed to build the configure script. The following commands will check out and build portable OpenSSH from git:

git clone https://github.com/openssh/openssh-portable # or https://anongit.mindrot.org/openssh.git
cd openssh-portable
autoreconf
./configure
make && make tests

Build-time Customisation

There are many build-time customisation options available. All Autoconf destination path flags (e.g. --prefix) are supported (and are usually required if you want to install OpenSSH).

For a full list of available flags, run configure --help but a few of the more frequently-used ones are described below. Some of these flags will require additional libraries and/or headers be installed.

FlagMeaning
--with-pamEnable PAM support. OpenPAM, Linux PAM and Solaris PAM are supported.
--with-libeditEnable libedit support for sftp.
--with-kerberos5Enable Kerberos/GSSAPI support. Both Heimdal and MIT Kerberos implementations are supported.
--with-selinuxEnable SELinux support.
--with-security-key-builtinInclude built-in support for U2F/FIDO2 security keys. This requires libfido2 be installed.

Development

Portable OpenSSH development is discussed on the openssh-unix-dev mailing list (archive mirror). Bugs and feature requests are tracked on our Bugzilla.

Reporting bugs

Non-security bugs may be reported to the developers via Bugzilla or via the mailing list above. Security bugs should be reported to openssh@openssh.com.