djm@openbsd.org 0c111eb84e upstream: Restrict ssh-agent from signing web challenges for FIDO
keys.

When signing messages in ssh-agent using a FIDO key that has an
application string that does not start with "ssh:", ensure that the
message being signed is one of the forms expected for the SSH protocol
(currently pubkey authentication and sshsig signatures).

This prevents ssh-agent forwarding on a host that has FIDO keys
attached granting the ability for the remote side to sign challenges
for web authentication using those keys too.

Note that the converse case of web browsers signing SSH challenges is
already precluded because no web RP can have the "ssh:" prefix in the
application string that we require.

ok markus@

OpenBSD-Commit-ID: 9ab6012574ed0352d2f097d307f4a988222d1b19
2020-05-27 10:14:45 +10:00
2020-05-12 12:58:46 +10:00
2020-04-21 18:28:19 +10:00
2020-05-13 12:03:42 +10:00
2020-01-16 13:27:23 +11:00
2019-10-02 10:54:28 +10:00
2020-01-23 21:06:45 +11:00
2018-10-11 11:29:35 +11:00
2019-10-02 10:54:28 +10:00
2017-10-20 12:58:35 +11:00
2017-10-20 12:58:35 +11:00
2016-10-21 06:55:58 +11:00
2016-03-08 06:20:35 +11:00
2016-08-29 11:20:28 +10:00
2019-07-29 09:49:23 +10:00
2019-09-08 14:49:04 +10:00
2017-05-10 11:41:21 +10:00
2019-10-02 10:54:28 +10:00
2020-01-23 21:06:45 +11:00
2015-02-17 09:32:31 +11:00
2019-11-29 20:21:36 +11:00
2020-02-21 12:29:05 +11:00
2019-10-02 10:54:28 +10:00
2019-07-29 09:49:23 +10:00
2019-10-02 10:54:28 +10:00
2016-07-08 13:50:03 +10:00
2020-02-20 16:42:50 +11:00
2019-11-17 09:44:43 +11:00
2016-03-04 15:12:17 +11:00
2015-01-15 21:39:14 +11:00
2017-10-01 10:32:25 +11:00
2020-05-12 12:58:46 +10:00
2020-02-11 12:51:24 +11:00
2020-02-07 15:13:26 +11:00
2019-09-19 15:41:23 +10:00
2015-03-23 17:08:12 +11:00
2016-09-12 13:46:29 +10:00
2020-05-01 13:13:29 +10:00
2017-09-12 17:37:02 +10:00
2019-01-24 10:07:03 +11:00
2015-01-15 02:22:18 +11:00
2016-05-19 17:48:34 +10:00
2020-01-20 21:14:46 +11:00
2018-09-13 12:13:50 +10:00
2020-02-17 22:55:51 +11:00
2016-11-29 16:51:27 +11:00
2018-07-31 12:59:30 +10:00
2017-05-01 10:05:04 +10:00
2018-02-09 20:00:18 +11:00
2020-05-07 15:39:00 +10:00
2019-11-13 10:15:46 +11:00
2019-11-13 10:15:46 +11:00
2018-03-05 10:22:32 +11:00

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.

Flag Meaning
--with-pam Enable PAM support. OpenPAM, Linux PAM and Solaris PAM are supported.
--with-libedit Enable libedit support for sftp.
--with-kerberos5 Enable Kerberos/GSSAPI support. Both Heimdal and MIT Kerberos implementations are supported.
--with-selinux Enable SELinux support.
--with-security-key-builtin Include 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.

Description
Portable OpenSSH, all Win32-OpenSSH releases and wiki are managed at https://github.com/powershell/Win32-OpenSSH
Readme 84 MiB
Languages
C 78.3%
Shell 6.7%
PowerShell 5.3%
Roff 4.9%
M4 2.4%
Other 2.4%