Install Boundary Desktop
End-users of HCP Boundary can utilize the Boundary Desktop app to connect to a running HCP Boundary instance to easily:
- Browse available targets
- Connect to targets
- Manage active sessions
Security administrators use the Boundary CLI and API to automate infrastructure access management, but the Desktop app makes Boundary accessible to low-code and no-code users. Users that establish sessions with targets frequently will also find the browse, connect, and manage functionality convenient for day-to-day operations.
In this tutorial, you will install the Boundary Desktop app and connect to a running target.
Prerequisites
- Access to an HCP Boundary instance.
- Completed the previous quick start tutorials.
- A publicly accessible Ubuntu instance used in the Connect to Your First Target tutorial.
- A ssh key-pair that can be used to authenticate with the Ubuntu instance.
Install Boundary Desktop
Boundary Desktop can be installed on MacOS, Windows, or Linux systems. Select the tab for your preferred OS.
Boundary Desktop on MacOS can be installed by either:
- The Homebrew package manager
- Direct Download
Homebrew is a free and open-source package management system for Mac OS X. Install from the official Boundary Desktop cask from the terminal.
First, install the HashiCorp tap, a repository of all our Homebrew packages.
Next, install Boundary Desktop with Homebrew:
Authenticate with Boundary Desktop
Next you will launch the Boundary Desktop app and connect it to the running controller.
Open the Boundary Desktop app installed earlier.
Enter the Boundary server Cluster URL and click Submit.
You can retrieve this from the HCP Portal or run
echo $BOUNDARY_ADDR
from your terminal session.Click Choose a different scope and select the
global
scope.Enter the administrator account in the Username field you selected when creating the HCP Boundary instance.
Enter the password you selected for the administrator account in the Password field.
Click Authenticate.
You are presented with the Targets view, which contains the targets created in the Connect to Your First Target tutorial.
Connect to a target
Next you will connect to the default target using the Desktop app.
Establish a connection
Click on Connect next to the quick-start-target target.
Copy the target's connection details
You will be presented with a dialog box that displays the target's connection info. You can copy the connection details to your clipboard by clicking the button to the right of the Local proxy address.
View the pending connection
Click OK, and navigate to the Sessions view using the sidebar on the left. Notice that the status for the Generated target has been updated to
pending
.Start an SSH session
Open a new shell session or your SSH client of choice to establish an SSH connection.
Replace
username
with a valid username for your target host. Replaceport
with the value from the copied target details after the:
. For example if the copied value was127.0.0.1:12345
replaceport
with12345
. Replaceprivate_key.pem
with the path to your private key.Once connected, return to the Boundary Desktop and the Sessions view should show the Generated target's status has been updated to
active
.Terminate the connection
You can close the active session directly from the Boundary Desktop app.
Under the Sessions view, click Cancel to the right of the status for the Generated target. The status will update to
canceling
and a confirmation dialog should appear to verify the successful session termination.Back in your terminal session, there should be a dialog confirming a closed connection by the remote host.
Next steps
You have completed the quick start series for HCP Boundary. Next, take a deeper dive into the various resources you created during this series such as scopes, targets, and host groups in the HCP Administration series.