upstream: check access(ssh-sk-helper, X_OK) to provide friendly

error message for misconfigured helper paths

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