IBM Cloud Docs
Why do I receive permission denied error while connecting to Spark labs?

Why do I receive permission denied error while connecting to Spark labs?

When you try to establish a connection with Spark labs, a "Permission denied" error is displayed.

Your SSH connection is not using the right private key to authenticate with the Spark labs.

Ensure the following to resolve the issue.

  1. The extension settings use the correct SSH private and public key pairs (PrivateKeyPath and PublicKeyPath).

  2. Use the same public key in the Settings page and in the Create Spark Lab window.

  3. Add an entry to your SSH configuration under ~/.ssh/config. Specify <port_number> and ~/.ssh/id_rsa in the following configuration.

    Host cpdenv
        HostName localhost
        Port <port_number> # Same port as spark-labs.localPort
        IdentityFile ~/.ssh/id_rsa # Path to your private key