upstream: make mktestdata.sh generate old/new format keys that we

expect. This script was written before OpenSSH switched to new-format private
keys by default and was never updated to the change (until now) From Michael
Forney

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

Portable OpenSSH

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, and zlib. libcrypto from either LibreSSL or OpenSSL may also be used, but OpenSSH may be built without it supporting a subset of crypto algorithms.

FIDO security token support need 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.