Download cdswctl and add an SSH Key

The first step to configure VS Code as a local IDE is to download cdswctl and add an SSH key.

  1. Select Apps in the left navigation pane on the Anywhere Cloud Console.
  2. Search for the required Cloudera AI Workbench instance.

    Ensure that the status of the instance is Deployed.

  3. Click on the name of the required instance.

    A pane opens displaying the available information for the selected instance.

  4. Click the URL of the selected Cloudera AI Workbench instance.

    The Cloudera AI Workbench home page is displayed.

  5. Navigate to User Settings > Keys and Access > Remote Editing for your user account.
  6. Download the CLI client for your operating system.
  7. In the terminal, run cat ~/.ssh/id_rsa.pub. If you used a different filename above when generating the key, use that filename instead. This command prints the key as a string.
  8. Copy the key. It should resemble the following: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCha2J5mW3i3BgtZ25/FOsxywpLVkx1RgmZunI
  9. In SSH public keys for session access, paste the key.
Cloudera AI uses the SSH public key to authenticate your CLI client session, including the SSH endpoint connection to the Cloudera AI deployment. Any SSH endpoints that are running when you add an SSH public key must also be restarted.

For more information on logging in with cdswctl, see Log into cdswctl.