Preparing SSH keys

In this chapter, we will use virtual machines to build OpenJDK. During the build source code, control commands, logs, and result binaries should be sent between host and virtual machines. We will use the ubiquitous Secure Shell (SSH) protocol and its most popular implementation OpenSSH for these tasks.

SSH allows us to send data between the machines and run the commands remotely. When the client performs an SSH connection, it should be authenticated against the server. Besides the user/password authentication, OpenSSH also supports authentication using asymmetric cryptography (RSA or similar) keys. With SSH keys configured, a client can connect to server without manual intervention. This eases the scripting for copying multiple ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.