OpenSSH: the original ssh’s licence forbade a Windows version, yet OpenBSD’s rushed 1999 free fork now ships inside Windows 10

Illustrative photo: OpenSSH's rushed 1999 free fork ships inside Windows 10

On December 1, 1999, Theo de Raadt and his OpenBSD team released OpenBSD 2.6 on the exact day their schedule demanded. Inside sat OpenSSH 1.2.2, a free tool for logging in to distant machines safely. No OpenBSD release had carried it before. The team had known about the code it was built on for less than two months, and a missed date would have meant no free ssh in 2.6.

Developers were committing changes in a rush, and some files had already been revised dozens of times by release day.

de Raadt's group was known for refusing to ship code it had not audited line by line. Yet here was a security tool, and security tools do not forgive sloppy work, produced on a clock that had no mercy.

OpenSSH, first released in 1999, would go on to be developed as part of the OpenBSD operating system itself. But on that first December day two questions hung over the new program. How could a team of purists turn out a secure, free ssh in so little time? And once it was out, would it stay free?

The licence that kept shrinking

On February 11, 1996, Tatu Ylönen posted the announcement for ssh-1.2.13, the newest version of the remote-login program he had written, and with it a change of rules. The copying policy had changed, he told users. Anyone could still use ssh for any purpose, but selling it commercially now required his permission.

Ylönen's early versions relied on libgmp, a library of mathematical functions, and shipped with a copy of it inside the package. That library was released under the regular GNU Public License, the GPL, a license written to keep software free.

Anyone who picked up a release after 1.2.12 found a license stricter than the earlier one. The first of them forbade anyone from making a Windows or DOS version, which shut out most desktop computers of the day. Later licenses went after business use, so a company that wanted ssh had to buy an expensive version from a firm called Datafellows.

Because libgmp was still bundled inside, the successively tighter licenses effectively turned the distribution of ssh into a GPL violation.

Only one version stayed clear of the knot. Release 1.2.12 was the last one whose license suited anyone who wanted to fork it, meaning to copy the code and carry it forward as a separate project. Everything that later became OpenSSH would descend from that release, first through Björn Grönvall's OSSH and then through the fork that de Raadt's team built from it.

Whoever wanted a free ssh would first have to find it, and nobody yet knew who would go looking.

A Swede's old tarball

In early 1999, Björn Grönvall went looking for a free ssh and found the old release that the licenses had left behind. He started fixing its bugs, one by one, and gave the repaired program a name: OSSH. It spoke only the SSH 1.3 protocol, and Grönvall never meant it to be more than a working, free tool.

It found users anyway. Word of mouth has it that OSSH went into some commercial products in Sweden, though nobody has pinned down which ones.

Meanwhile, some OpenBSD developers had set themselves a larger task. They wanted to free SSH for good, clean up the license mess, and keep the code maintained into the future. What they lacked was a starting point that was legally clear and technically sound.

Then they heard about Grönvall's work. The news reached the project less than two months before the OpenBSD 2.6 release, and the 2.6 date was not going to move.

Theo de Raadt and his team now faced a choice. They wanted ssh in 2.6. They could drop Grönvall's code into the release and hope for the best, or they could hold it to the standard they applied to everything else, which was that it had to be perfect before it shipped. Shipping unchecked code was off the table for a group that trusted nothing it had not read itself. The team forked from OSSH at once and put the code through the OpenBSD security auditing process.

Grönvall's project went on without them, but not far. OSSH never graduated to SSH 2 protocol support, and he probably stopped working on it once OpenSSH matured.

The abrasive purists

In December 1994, Theo de Raadt's colleagues on the NetBSD core team forced him to resign and revoked his access to the project's repository. They cited rude and abusive behavior on the mailing lists. He had helped found the project, and now he was locked out of it.

The reputation followed him out the door. Linus Torvalds would later call him “difficult”, and the writer Peter Wayner would say he “began to rub some people the wrong way”.

De Raadt did not go quiet. In October 1995 he answered the expulsion by founding OpenBSD, forked from NetBSD 1.0, so that the code went with him into a project of his own. Version 1.2 followed in July 1996, and 2.0 arrived that October.

Soon after the project began, a local company called Secure Networks knocked on its door. It was developing an auditing tool named Ballista, and its people worked with de Raadt, and their work helped define security as OpenBSD's focus. The project's priorities settled into a list: portability, standardization, correctness, proactive security and cryptography built in rather than bolted on.

Habits grew out of that list. The team shipped strlcpy and strlcat as safer replacements for the old C string functions strcpy and strcat, which let a careless programmer write past the end of a buffer. And it set a rhythm that never bent: a new release every six months, each one supported for a year.

Now that rhythm bore down on the borrowed code. Release 2.6 would leave on its appointed day whether or not anyone had finished reading a stranger's program line by line. The people who had been shown the door at NetBSD, and who had built a project around distrust, were about to open Grönvall's files. The first import was only days away.

Sixty-six revisions in two months

On September 26, 1999, someone on the OpenBSD team committed the first import of Grönvall's OSSH into the project's repository. From that day the clock ran on a single rule: the code had to be clean before the 2.6 release left. Six developers did most of the early work: Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt and Dug Song.

They opened the files and did not like what they saw. Even the original ssh code struck the team as too complicated, and it leaned on too many operating system dependencies, the small hooks that tie a program to one particular flavor of Unix. For people who trusted only what they had read, a tangle like that was a risk to be cut out before anything else.

So they cut, and they kept cutting. The repository kept a numbered history of every change to every file, and those numbers climbed fast. By release, many files had already reached revision 1.34, and some stood as high as 1.66.

The team had a reason beyond the deadline. The OpenSSH developers would later claim their program was more secure than the original, because they insisted on clean, audited code and because they released it under the BSD license, which lets anyone use it freely.

The work held. OpenSSH first appeared in OpenBSD 2.6, and the first portable release followed in October 1999. "Portable" meant a version that could leave OpenBSD behind and run on other systems.

Splitting the work, adding SSH 2

Almost as soon as the protocol 1 release appeared, mail started arriving from people who did not run OpenBSD. Damien Miller, Philip Hands and others wanted the program on their own machines, and they began porting it to Linux and other Unix systems.

Their interest posed a problem for a team that had just spent weeks stripping operating system quirks out of the code. Porting meant putting quirks back, one platform at a time. The developers answered by dividing the labor. One branch, the core, stayed in OpenBSD's hands and stayed clean. A second branch handled portability, and its releases carried a letter so nobody could confuse the two.

The letter was "p." A version such as 4.0p1 came from the portable team, while the official OpenBSD source never wore the suffix.

Meanwhile, Friedl kept his eyes on a bigger prize. Protocol 1 was aging, and he pursued support for SSH 2, the newer protocol. The easy path would have been two programs side by side. Friedl produced a single program that spoke both SSH 1 and SSH 2, and he held it to the team's old standard of staying slim and lean.

Nobody let his changes through unread. Provos and de Raadt did most of the checking, going over Friedl's work with the same suspicion they had brought to Grönvall's files. Bob Beck handled a chore of his own, updating the external SSL library the program depended on.

The result shipped with OpenBSD 2.7 on June 15, 2000, as OpenSSH 2.0. The schedule had held again. A free ssh now spoke the newer protocol, and anyone could fetch it.

The creator asks for his name back

In February 2001, a message from Tatu Ylönen landed on the OpenSSH mailing list, and it did not read like a greeting between colleagues. His company, he wrote, intended to assert ownership of the "SSH" and "Secure Shell" trademarks, and he wanted references to the protocol changed to "SecSH."

He went further. To avoid a lawsuit, he suggested, OpenSSH should change its own name. The developers who had spent more than a year on the program did not take the suggestion well, and they resisted.

Damien Miller answered for them. He urged Ylönen to reconsider, arguing that "SSH" had long since become a generic term, a name for a kind of tool rather than one company's product. Ylönen replied with a correction that weakened his own position. The US registration, he wrote, covered the lowercase word "ssh," and he admitted he had been mistaken when he said earlier that it covered uppercase "SSH."

Then he took the fight to a wider room. Ylönen asked the IETF working group, the standards body's committee that maintained the protocol, to rename it. Jeff Schiller opened the debate with a plea to the members: "Maybe we can find it in our hearts to help out one of our own." The working group voted 3 to 1 to reject Ylönen's request.

Ylönen said he was "very disappointed" and that he would consult his lawyers.

The threat came with no deadline for de Raadt and his team, and that may have been worse than a date on a calendar. A name that had survived the rush of 1999 now depended on what a lawyer might do. And behind the name stood the code itself: what became of it in the years that followed?

From forked deadline to Windows

In March 2010, with OpenSSH 5.4, the developers switched SSH protocol 1 off by default. The change ended a transition that had lasted about ten years.

The license de Raadt's team had chosen carried the program much further than that. The BSD license lets anyone redistribute binaries without publishing the source, so OpenBSD components turned up inside proprietary projects: Apple's macOS, Android's Bionic library, and Windows 10's OpenSSH. On October 19, 2015, Microsoft announced that OpenSSH would be supported natively on Windows. Since version 1803, Windows 10 has shipped client and server programs built on OpenSSH, with the server offered as an optional feature that users add on demand.

Microsoft's own blog got one detail wrong. It credited OpenSSH as originally created by the "OpenBSD Foundation," an organization that did not exist when the code was forked, and was formed only in 2007. In OpenSSH, "open" means OpenBSD. In OpenBSD, it means open source availability.

On December 1, 1999, de Raadt's team shipped a rushed, freshly audited fork because the calendar would not move. The first restrictive licence on the original ssh had forbidden a Windows or DOS version. Today a person at a Windows prompt can type a single command and reach another machine with that same forked code.

Cover: Autopilot · CC BY-SA 3.0 · Wikimedia Commons. Layout and headline text by Signal Titans.

Source: The 1999 Development of OpenSSH: OpenBSD’s Emergency Fork to Escape Commercial Capture · Theo de Raadt (Wikipedia) · OpenBSD (Wikipedia) · OpenSSH: Portable Release · Secure Shell inventor denied trademark request – Computerworld · gitweb.dragonflybsd.org Git – dragonfly.git/blob – crypto/openssh/README · Arch Linux – openssh 10.6p1-3 (x86_64) · OpenSSH: Project History · 'ssh-1.2.13 now available' – MARC · OpenSSH: Project History · What's new for the Command Line in Windows 10 version 1803 – Windows Command Line · ssh(1) – OpenBSD manual pages · 'Re: Extensions for long fat networks?' – MARC · sshd(8) – Linux manual page · OpenSSH 5.4 released [LWN.net] · NewsForge | Yl�nen: We own ssh trademark, but here's a proposal · sshd(8) – OpenBSD manual pages · SSH OpenSSH command – Windows CMD · Linux.com :: Using OpenBSD on the desktop

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *