

is the unique identifier for the device you want to access, which can be found via the dashboard or in the output of the balena devices CLI command. Then run the following command on your development machine's terminal: $ balena ssh
ENABLE INTERACTIVE SSH ON MAC INSTALL
To use the CLI, first install it and add an SSH key to balenaCloud.

For MacOS users, ⌘ + C and ⌘ + V work as expected.

You can either select Copy and Paste from a menu, or use Ctrl + Insert for copy and Shift + Insert for Paste. Note: To copy and paste in the terminal window, you cannot use the normal Ctrl + C and Ctrl + V shortcuts. If you would like a bigger window for the terminal, you can click the Expand button in the upper-right corner. If the container code crashes or ends quickly, it is not possible to attach a console to it.Ī terminal session should be initiated for you in a second or two. In order to start a terminal session for a service, you need to ensure that the service container is running. If your device is online, select a target as either the host OS or a running service, and click the blue >_ Start Terminal session button. You will see a Terminal window below the Logs window: To use this feature, navigate to your fleet and select the device you want to access. Note: Host OS SSH access is available for devices running balenaOS version 2.7.5 and above. You can also access your device via a standalone SSH client. With these tools, you have console access to any of your running containers, as well as to the host OS, letting you test out small snippets of code and check system logs on your device. To help you debug, develop, and work with your fleets, we've provided a browser-based terminal and a command line tool for easy SSH access to your devices.
